aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/upnp/Discovery.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-16 09:03:41 +0100
committerMax Kellermann <max@duempel.org>2014-01-16 09:08:04 +0100
commit1a09003a6e8fc5ae3b1e4b01ae8432b0ed3ca7bd (patch)
tree66e531cf6e92bea80619c669ff8412efd1d0b5f2 /src/db/upnp/Discovery.cxx
parenta8277148230bf02c89656e3839b72d77e8d91cf0 (diff)
downloadmpd-1a09003a6e8fc5ae3b1e4b01ae8432b0ed3ca7bd.tar.gz
mpd-1a09003a6e8fc5ae3b1e4b01ae8432b0ed3ca7bd.tar.xz
mpd-1a09003a6e8fc5ae3b1e4b01ae8432b0ed3ca7bd.zip
db/upnp: move the UPnPDeviceDirectory instance to class UpnpDatabase
Delete the object when closing the database.
Diffstat (limited to 'src/db/upnp/Discovery.cxx')
-rw-r--r--src/db/upnp/Discovery.cxx11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/db/upnp/Discovery.cxx b/src/db/upnp/Discovery.cxx
index 89f01df2a..97b57c89c 100644
--- a/src/db/upnp/Discovery.cxx
+++ b/src/db/upnp/Discovery.cxx
@@ -275,17 +275,6 @@ UPnPDeviceDirectory::search()
return true;
}
-UPnPDeviceDirectory *UPnPDeviceDirectory::getTheDir()
-{
- // TODO: elimate static variable
- static UPnPDeviceDirectory *theDevDir;
- if (theDevDir == nullptr)
- theDevDir = new UPnPDeviceDirectory();
- if (theDevDir && !theDevDir->ok())
- return 0;
- return theDevDir;
-}
-
bool
UPnPDeviceDirectory::getDirServices(std::vector<ContentDirectoryService> &out)
{