aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-11 01:16:35 +0100
committerMax Kellermann <max@duempel.org>2014-01-11 01:16:35 +0100
commit4b3a3d6faaf279a6efbad45616e7b5ebdc5c7a62 (patch)
tree7e3169b5c6d3f8ad9700f1419d3de68c8368cc89
parent71d012fa61289d167a4337f6f0aa17ac5bf39f12 (diff)
downloadmpd-4b3a3d6faaf279a6efbad45616e7b5ebdc5c7a62.tar.gz
mpd-4b3a3d6faaf279a6efbad45616e7b5ebdc5c7a62.tar.xz
mpd-4b3a3d6faaf279a6efbad45616e7b5ebdc5c7a62.zip
db/upnp: remove unnecessary Mutex
-rw-r--r--src/db/upnp/upnpplib.cxx2
-rw-r--r--src/db/upnp/upnpplib.hxx2
2 files changed, 0 insertions, 4 deletions
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 <map>
@@ -40,7 +39,6 @@ class LibUPnP {
Error init_error;
UpnpClient_Handle m_clh;
- Mutex m_mutex;
std::map<Upnp_EventType, Handler> m_handlers;
LibUPnP();