Commit 09d62cc6 authored by Max Kellermann's avatar Max Kellermann

db/upnp: remove unused method errAsString()

parent a2ead993
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#include "Log.hxx" #include "Log.hxx"
#include <string> #include <string>
#include <sstream>
#include <map> #include <map>
#include <vector> #include <vector>
#include <set> #include <set>
...@@ -111,14 +110,6 @@ LibUPnP::registerHandler(Upnp_EventType et, Upnp_FunPtr handler, void *cookie) ...@@ -111,14 +110,6 @@ LibUPnP::registerHandler(Upnp_EventType et, Upnp_FunPtr handler, void *cookie)
m_handlers.emplace(et, Handler(handler, cookie)); m_handlers.emplace(et, Handler(handler, cookie));
} }
std::string
LibUPnP::errAsString(const std::string& who, int code)
{
std::ostringstream os;
os << who << " :" << code << ": " << UpnpGetErrorMessage(code);
return os.str();
}
int int
LibUPnP::o_callback(Upnp_EventType et, void* evp, void* cookie) LibUPnP::o_callback(Upnp_EventType et, void* evp, void* cookie)
{ {
......
...@@ -85,9 +85,6 @@ public: ...@@ -85,9 +85,6 @@ public:
{ {
return m_clh; return m_clh;
} }
/** Translate integer error code (UPNP_E_XXX) to string */
static std::string errAsString(const std::string& who, int code);
}; };
#endif /* _LIBUPNP.H_X_INCLUDED_ */ #endif /* _LIBUPNP.H_X_INCLUDED_ */
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