lib/expat/Parser: remove unused method SetError()
This commit is contained in:
parent
a55bb28069
commit
17ccfec358
@ -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)
|
||||
{
|
||||
|
@ -75,9 +75,6 @@ public:
|
||||
gcc_pure
|
||||
static const char *GetAttributeCase(const XML_Char **atts,
|
||||
const char *name);
|
||||
|
||||
private:
|
||||
void SetError(Error &error);
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user