Commit ac667c529d6423f74f0b885ec8180d04f10b7240

Authored by Wesnydy Ribeiro
1 parent b2bb9e8a
Exists in devel

undo last modification

extrator/src/extratorTXT.cpp
... ... @@ -55,10 +55,6 @@ void ExtratorTXT::encodingfiletoUTF8() {
55 55 system(sedcmd.c_str());
56 56 }
57 57  
58   -void ExtratorTXT::remove_quotes(std::string &str) {
59   - str.erase(std::remove(str.begin(), str.end(), '\"'), str.end());
60   -}
61   -
62 58 void ExtratorTXT::setFilePath(char* path){
63 59 this->filePath = path;
64 60 encodingfiletoUTF8();
... ... @@ -90,7 +86,6 @@ void ExtratorTXT::Run(){
90 86 getline(ifs_, current_line, '\n');
91 87  
92 88 if (current_line.length() != 0) {
93   - remove_quotes(current_line);
94 89 notifyListeners((unsigned char*) current_line.c_str());
95 90 line_index++;
96 91 }
... ...
extrator/src/include/extratorTXT.h
... ... @@ -75,7 +75,6 @@ public:
75 75 void Run();
76 76  
77 77 private:
78   - void remove_quotes(std::string &str);
79 78 void encodingfiletoUTF8();
80 79  
81 80 list<ListenerTXT*> *listeners;
... ...