Commit 4b3a3d6f authored by Max Kellermann's avatar Max Kellermann

db/upnp: remove unnecessary Mutex

parent 71d012fa
......@@ -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
......
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment