diff options
author | Max Kellermann <max@musicpd.org> | 2016-10-29 11:06:28 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2016-10-29 11:06:28 +0200 |
commit | 17ccfec358b280bd0133e5f4dacbf8557bb3ebce (patch) | |
tree | 9fd6e9df39af9d7a3b0cd735c594f21585dbd807 | |
parent | a55bb28069ba5f08e8fe7f24c74a3c8cc05205fe (diff) |
lib/expat/Parser: remove unused method SetError()
-rw-r--r-- | src/lib/expat/ExpatParser.cxx | 12 | ||||
-rw-r--r-- | src/lib/expat/ExpatParser.hxx | 3 |
2 files changed, 0 insertions, 15 deletions
diff --git a/src/lib/expat/ExpatParser.cxx b/src/lib/expat/ExpatParser.cxx index 99050f886..6ba599f4c 100644 --- a/src/lib/expat/ExpatParser.cxx +++ b/src/lib/expat/ExpatParser.cxx @@ -21,21 +21,9 @@ #include "ExpatParser.hxx" #include "input/InputStream.hxx" #include "util/ASCII.hxx" -#include "util/Error.hxx" -#include "util/Domain.hxx" #include <string.h> -static constexpr Domain expat_domain("expat"); - -void -ExpatParser::SetError(Error &error) -{ - XML_Error code = XML_GetErrorCode(parser); - error.Format(expat_domain, int(code), "XML parser failed: %s", - XML_ErrorString(code)); -} - void ExpatParser::Parse(const char *data, size_t length, bool is_final) { diff --git a/src/lib/expat/ExpatParser.hxx b/src/lib/expat/ExpatParser.hxx index c13017fb3..7b5af23b5 100644 --- a/src/lib/expat/ExpatParser.hxx +++ b/src/lib/expat/ExpatParser.hxx @@ -75,9 +75,6 @@ public: gcc_pure static const char *GetAttributeCase(const XML_Char **atts, const char *name); - -private: - void SetError(Error &error); }; /** |