aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-10 22:13:21 +0100
committerMax Kellermann <max@duempel.org>2014-01-10 22:59:46 +0100
commitb330aa8dd5114db7119755dd0678773770c83992 (patch)
tree6f750bf2ee4ccbebd15d68c4414eae2045adffb0 /src
parent1b8053a618a84122367699a24f6b2b871f1f2100 (diff)
downloadmpd-b330aa8dd5114db7119755dd0678773770c83992.tar.gz
mpd-b330aa8dd5114db7119755dd0678773770c83992.tar.xz
mpd-b330aa8dd5114db7119755dd0678773770c83992.zip
db/upnp: remove unnecessary empty string checks from CharacterData()
Diffstat (limited to '')
-rw-r--r--src/db/upnp/Device.cxx3
-rw-r--r--src/db/upnp/Directory.cxx2
2 files changed, 0 insertions, 5 deletions
diff --git a/src/db/upnp/Device.cxx b/src/db/upnp/Device.cxx
index c1cfab07a..37a5bf928 100644
--- a/src/db/upnp/Device.cxx
+++ b/src/db/upnp/Device.cxx
@@ -59,9 +59,6 @@ protected:
}
virtual void CharacterData(const XML_Char *s, int len) {
- if (len == 0)
- return;
-
std::string str(s, len);
trimstring(str);
switch (m_path.back()[0]) {
diff --git a/src/db/upnp/Directory.cxx b/src/db/upnp/Directory.cxx
index bc871a448..cbe025e7a 100644
--- a/src/db/upnp/Directory.cxx
+++ b/src/db/upnp/Directory.cxx
@@ -160,8 +160,6 @@ protected:
virtual void CharacterData(const XML_Char *s, int len)
{
- if (s == 0 || *s == 0)
- return;
std::string str(s, len);
trimstring(str);
switch (m_path.back()[0]) {