Browse Source

Abit more cleanup, and removal of an accidental path-paste in source.cc.

merge-requests/365/head
eidheim 11 years ago
parent
commit
4355fcdfab
  1. 9
      juci/source.cc
  2. 4
      juci/source.h

9
juci/source.cc

@ -88,7 +88,7 @@ SetTagTable(const std::unordered_map<string, string> &tagtable) {
tagtable_ = tagtable; tagtable_ = tagtable;
} }
bool Source::Config::legal_extension(std::string e) const {/Users/eidheim/test/jucipp/juci bool Source::Config::legal_extension(std::string e) const {
std::transform(e.begin(), e.end(),e.begin(), ::tolower); std::transform(e.begin(), e.end(),e.begin(), ::tolower);
if (find(extensiontable_.begin(), extensiontable_.end(), e) != extensiontable_.end()) { if (find(extensiontable_.begin(), extensiontable_.end(), e) != extensiontable_.end()) {
DEBUG("Legal extension"); DEBUG("Legal extension");
@ -134,13 +134,6 @@ get_buffer_map() const {
return buffer_map; return buffer_map;
} }
// Source::View::UpdateLine
void Source::View::
OnLineEdit(const std::vector<Source::Range> &locations,
const Source::Config &config) {
OnUpdateSyntax(locations, config);
}
// Source::Model::UpdateLine // Source::Model::UpdateLine
int Source::Parser:: int Source::Parser::
ReParse(const std::map<std::string, std::string> &buffer) { ReParse(const std::map<std::string, std::string> &buffer) {

4
juci/source.h

@ -66,8 +66,6 @@ namespace Source {
public: public:
View(); View();
virtual ~View() { } virtual ~View() { }
void OnLineEdit(const std::vector<Range> &locations,
const Config &config);
void OnUpdateSyntax(const std::vector<Range> &locations, void OnUpdateSyntax(const std::vector<Range> &locations,
const Config &config); const Config &config);
std::string GetLine(size_t line_number); std::string GetLine(size_t line_number);
@ -145,8 +143,6 @@ namespace Source {
View view; View view;
private: private:
void OnLineEdit();
void OnSaveFile();
Glib::Dispatcher parse_done; Glib::Dispatcher parse_done;
Glib::Dispatcher parse_start; Glib::Dispatcher parse_start;
std::thread parse_thread; std::thread parse_thread;

Loading…
Cancel
Save