From 09d62cc6304be55f54356d5f12493b8ecd504748 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 10 Jan 2014 22:30:06 +0100 Subject: db/upnp: remove unused method errAsString() --- src/db/upnp/upnpplib.cxx | 9 --------- src/db/upnp/upnpplib.hxx | 3 --- 2 files changed, 12 deletions(-) (limited to 'src/db') diff --git a/src/db/upnp/upnpplib.cxx b/src/db/upnp/upnpplib.cxx index 27dd9557a..2aa328e8d 100644 --- a/src/db/upnp/upnpplib.cxx +++ b/src/db/upnp/upnpplib.cxx @@ -24,7 +24,6 @@ #include "Log.hxx" #include -#include #include #include #include @@ -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) { diff --git a/src/db/upnp/upnpplib.hxx b/src/db/upnp/upnpplib.hxx index fa3454072..efad193fb 100644 --- a/src/db/upnp/upnpplib.hxx +++ b/src/db/upnp/upnpplib.hxx @@ -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_ */ -- cgit v1.2.3