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