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;
}
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);
if (find(extensiontable_.begin(), extensiontable_.end(), e) != extensiontable_.end()) {
DEBUG("Legal extension");
@ -134,13 +134,6 @@ get_buffer_map() const {
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
int Source::Parser::
ReParse(const std::map<std::string, std::string> &buffer) {

4
juci/source.h

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

Loading…
Cancel
Save