diff --git a/plotjuggler_plugins/ParserProtobuf/error_collectors.cpp b/plotjuggler_plugins/ParserProtobuf/error_collectors.cpp index f0a29e083..3768499bf 100644 --- a/plotjuggler_plugins/ParserProtobuf/error_collectors.cpp +++ b/plotjuggler_plugins/ParserProtobuf/error_collectors.cpp @@ -23,16 +23,6 @@ void FileErrorCollector::AddWarning(const std::string& filename, int line, int, qDebug() << msg; } -void FileErrorCollector::RecordError(absl::string_view filename, int line, int column, - absl::string_view message) -{ - QString errorMessage = QString("Error in file: %1 at line: %2, column: %3: %4") - .arg(QString::fromStdString(std::string(filename))) - .arg(line) - .arg(column) - .arg(QString::fromStdString(std::string(message))); - _errors << errorMessage; -} void IoErrorCollector::AddError(int line, google::protobuf::io::ColumnNumber, const std::string& message) { diff --git a/plotjuggler_plugins/ParserProtobuf/error_collectors.h b/plotjuggler_plugins/ParserProtobuf/error_collectors.h index 03355a244..d3e9c5291 100644 --- a/plotjuggler_plugins/ParserProtobuf/error_collectors.h +++ b/plotjuggler_plugins/ParserProtobuf/error_collectors.h @@ -3,6 +3,7 @@ #include #include + #include class IoErrorCollector : public google::protobuf::io::ErrorCollector @@ -10,11 +11,9 @@ class IoErrorCollector : public google::protobuf::io::ErrorCollector public: void AddError(int line, google::protobuf::io::ColumnNumber column, const std::string& message); - const std::string& message); void AddWarning(int line, google::protobuf::io::ColumnNumber column, const std::string& message); - const std::string& message); const QStringList& errors() { @@ -34,20 +33,13 @@ class FileErrorCollector : public google::protobuf::compiler::MultiFileErrorColl void AddWarning(const std::string& filename, int line, int, const std::string& message); - const QStringList& errors() const + const QStringList& errors() { return _errors; } - // Accessor for the collected warnings - const QStringList& warnings() const - { - return _warnings; - } - private: QStringList _errors; - QStringList _warnings; }; #endif // ERROR_COLLECTORS_H \ No newline at end of file