aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/upnp/upnpplib.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/db/upnp/upnpplib.cxx')
-rw-r--r--src/db/upnp/upnpplib.cxx14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/db/upnp/upnpplib.cxx b/src/db/upnp/upnpplib.cxx
index 508315b26..27b4e0564 100644
--- a/src/db/upnp/upnpplib.cxx
+++ b/src/db/upnp/upnpplib.cxx
@@ -27,20 +27,6 @@
static LibUPnP *theLib;
-LibUPnP *
-LibUPnP::getLibUPnP(Error &error)
-{
- if (theLib == nullptr)
- theLib = new LibUPnP;
-
- if (!theLib->ok()) {
- error.Set(theLib->GetInitError());
- return nullptr;
- }
-
- return theLib;
-}
-
LibUPnP::LibUPnP()
{
auto code = UpnpInit(0, 0);