From 018bacf44a49f83eae34e2fb2187ffcb83259a65 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 23 Nov 2015 11:20:48 +0200 Subject: [PATCH] loplugin:unusedfields in shell/ Change-Id: I3a3f7144483cebaad6d64588ff0570f29ab24e27 --- shell/inc/internal/xml_parser.hxx | 16 ++-------------- shell/source/all/xml_parser.cxx | 6 +----- 2 files changed, 3 insertions(+), 19 deletions(-) diff --git a/shell/inc/internal/xml_parser.hxx b/shell/inc/internal/xml_parser.hxx index 975f17afaddc..40c97ed72444 100644 --- a/shell/inc/internal/xml_parser.hxx +++ b/shell/inc/internal/xml_parser.hxx @@ -30,22 +30,10 @@ class xml_parser_exception : public std::runtime_error public: xml_parser_exception( - const std::string& error_msg, - int error_code, - int line_number, - int column_number, - long byte_index) : - std::runtime_error(error_msg), - error_code_(error_code), - line_number_(line_number), - column_number_(column_number), - byte_index_(byte_index) + const std::string& error_msg) : + std::runtime_error(error_msg) {} - int error_code_; - int line_number_; - int column_number_; - long byte_index_; }; diff --git a/shell/source/all/xml_parser.cxx b/shell/source/all/xml_parser.cxx index 893cf0870f03..6d557213d639 100644 --- a/shell/source/all/xml_parser.cxx +++ b/shell/source/all/xml_parser.cxx @@ -178,11 +178,7 @@ void xml_parser::parse(const char* XmlData, size_t Length, bool IsFinal) XML_Parse(xml_parser_, XmlData, static_cast(Length), IsFinal)) { throw xml_parser_exception( - XML_ErrorString(XML_GetErrorCode(xml_parser_)), - (int)XML_GetErrorCode(xml_parser_), - XML_GetCurrentLineNumber(xml_parser_), - XML_GetCurrentColumnNumber(xml_parser_), - XML_GetCurrentByteIndex(xml_parser_)); + XML_ErrorString(XML_GetErrorCode(xml_parser_))); } }