db/upnp: remove unnecessary Mutex

This commit is contained in:
Max Kellermann 2014-01-11 01:16:35 +01:00
parent 71d012fa61
commit 4b3a3d6faa
2 changed files with 0 additions and 4 deletions

View File

@ -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

View File

@ -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();