From 4b3a3d6faaf279a6efbad45616e7b5ebdc5c7a62 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 11 Jan 2014 01:16:35 +0100 Subject: db/upnp: remove unnecessary Mutex --- src/db/upnp/upnpplib.cxx | 2 -- src/db/upnp/upnpplib.hxx | 2 -- 2 files changed, 4 deletions(-) (limited to 'src/db/upnp') diff --git a/src/db/upnp/upnpplib.cxx b/src/db/upnp/upnpplib.cxx index 7d4160f47..d7c65ccf4 100644 --- a/src/db/upnp/upnpplib.cxx +++ b/src/db/upnp/upnpplib.cxx @@ -68,8 +68,6 @@ LibUPnP::LibUPnP() void LibUPnP::registerHandler(Upnp_EventType et, Upnp_FunPtr handler, void *cookie) { - const ScopeLock protect(m_mutex); - if (handler == nullptr) m_handlers.erase(et); else diff --git a/src/db/upnp/upnpplib.hxx b/src/db/upnp/upnpplib.hxx index 6fd997c31..b6ce80212 100644 --- a/src/db/upnp/upnpplib.hxx +++ b/src/db/upnp/upnpplib.hxx @@ -20,7 +20,6 @@ #ifndef _LIBUPNP_H_X_INCLUDED_ #define _LIBUPNP_H_X_INCLUDED_ -#include "thread/Mutex.hxx" #include "util/Error.hxx" #include @@ -40,7 +39,6 @@ class LibUPnP { Error init_error; UpnpClient_Handle m_clh; - Mutex m_mutex; std::map m_handlers; LibUPnP(); -- cgit v1.2.3