db/upnp: remove unnecessary empty string checks from CharacterData()

This commit is contained in:
Max Kellermann 2014-01-10 22:13:21 +01:00
parent 1b8053a618
commit b330aa8dd5
2 changed files with 0 additions and 5 deletions

View File

@ -59,9 +59,6 @@ protected:
} }
virtual void CharacterData(const XML_Char *s, int len) { virtual void CharacterData(const XML_Char *s, int len) {
if (len == 0)
return;
std::string str(s, len); std::string str(s, len);
trimstring(str); trimstring(str);
switch (m_path.back()[0]) { switch (m_path.back()[0]) {

View File

@ -160,8 +160,6 @@ protected:
virtual void CharacterData(const XML_Char *s, int len) virtual void CharacterData(const XML_Char *s, int len)
{ {
if (s == 0 || *s == 0)
return;
std::string str(s, len); std::string str(s, len);
trimstring(str); trimstring(str);
switch (m_path.back()[0]) { switch (m_path.back()[0]) {