db/upnp: remove unused method errAsString()

This commit is contained in:
Max Kellermann 2014-01-10 22:30:06 +01:00
parent a2ead993e6
commit 09d62cc630
2 changed files with 0 additions and 12 deletions

View File

@ -24,7 +24,6 @@
#include "Log.hxx"
#include <string>
#include <sstream>
#include <map>
#include <vector>
#include <set>
@ -111,14 +110,6 @@ LibUPnP::registerHandler(Upnp_EventType et, Upnp_FunPtr handler, void *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
LibUPnP::o_callback(Upnp_EventType et, void* evp, void* cookie)
{

View File

@ -85,9 +85,6 @@ public:
{
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_ */