From b330aa8dd5114db7119755dd0678773770c83992 Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@duempel.org>
Date: Fri, 10 Jan 2014 22:13:21 +0100
Subject: db/upnp: remove unnecessary empty string checks from CharacterData()

---
 src/db/upnp/Device.cxx    | 3 ---
 src/db/upnp/Directory.cxx | 2 --
 2 files changed, 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]) {
-- 
cgit v1.2.3