aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-10 22:14:27 +0100
committerMax Kellermann <max@duempel.org>2014-01-10 23:00:03 +0100
commita2ead993e69bca93b34d3a9d8a3f655b6d00d7a9 (patch)
treea20e5c8e6ba185ab63f1d5fe6cb2252da7c1cda8
parentb330aa8dd5114db7119755dd0678773770c83992 (diff)
downloadmpd-a2ead993e69bca93b34d3a9d8a3f655b6d00d7a9.tar.gz
mpd-a2ead993e69bca93b34d3a9d8a3f655b6d00d7a9.tar.xz
mpd-a2ead993e69bca93b34d3a9d8a3f655b6d00d7a9.zip
db/upnp/Device: remove unused attribute "m_tabs"
Diffstat (limited to '')
-rw-r--r--src/db/upnp/Device.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/db/upnp/Device.cxx b/src/db/upnp/Device.cxx
index 37a5bf928..37d68c232 100644
--- a/src/db/upnp/Device.cxx
+++ b/src/db/upnp/Device.cxx
@@ -34,7 +34,6 @@
*/
class UPnPDeviceParser final : public CommonExpatParser {
UPnPDevice &m_device;
- std::string m_tabs;
std::vector<std::string> m_path;
UPnPService m_tservice;
@@ -44,7 +43,6 @@ public:
protected:
virtual void StartElement(const XML_Char *name, const XML_Char **) {
- m_tabs.push_back('\t');
m_path.push_back(name);
}
@@ -53,8 +51,7 @@ protected:
m_device.services.push_back(m_tservice);
m_tservice.clear();
}
- if (m_tabs.size())
- m_tabs.erase(m_tabs.size()-1);
+
m_path.pop_back();
}