diff options
author | Max Kellermann <max@duempel.org> | 2014-01-26 13:54:48 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-26 13:54:48 +0100 |
commit | 66c013682fb15d5aa1d9d4d3a93275bea76d6402 (patch) | |
tree | 8813f51e9bb278917dbea9466977f9decc9c621f /src/lib | |
parent | 9f3ba737d608b58eb4ebdff37a753cd3de735290 (diff) | |
download | mpd-66c013682fb15d5aa1d9d4d3a93275bea76d6402.tar.gz mpd-66c013682fb15d5aa1d9d4d3a93275bea76d6402.tar.xz mpd-66c013682fb15d5aa1d9d4d3a93275bea76d6402.zip |
upnp: remove obsolete global variable "theLib"
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/upnp/upnpplib.cxx | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/lib/upnp/upnpplib.cxx b/src/lib/upnp/upnpplib.cxx index 27b4e0564..475447dee 100644 --- a/src/lib/upnp/upnpplib.cxx +++ b/src/lib/upnp/upnpplib.cxx @@ -25,8 +25,6 @@ #include <upnp/ixml.h> #include <upnp/upnptools.h> -static LibUPnP *theLib; - LibUPnP::LibUPnP() { auto code = UpnpInit(0, 0); @@ -55,10 +53,6 @@ int LibUPnP::o_callback(Upnp_EventType et, void* evp, void* cookie) { LibUPnP *ulib = (LibUPnP *)cookie; - if (ulib == nullptr) { - // Because the asyncsearch calls uses a null cookie. - ulib = theLib; - } if (ulib->handler) ulib->handler(et, evp); |