aboutsummaryrefslogtreecommitdiffstats
path: root/src/db
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-10 22:30:06 +0100
committerMax Kellermann <max@duempel.org>2014-01-10 23:00:10 +0100
commit09d62cc6304be55f54356d5f12493b8ecd504748 (patch)
tree65cbe7efea93605806564e78ea1aab0ada355967 /src/db
parenta2ead993e69bca93b34d3a9d8a3f655b6d00d7a9 (diff)
downloadmpd-09d62cc6304be55f54356d5f12493b8ecd504748.tar.gz
mpd-09d62cc6304be55f54356d5f12493b8ecd504748.tar.xz
mpd-09d62cc6304be55f54356d5f12493b8ecd504748.zip
db/upnp: remove unused method errAsString()
Diffstat (limited to 'src/db')
-rw-r--r--src/db/upnp/upnpplib.cxx9
-rw-r--r--src/db/upnp/upnpplib.hxx3
2 files changed, 0 insertions, 12 deletions
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 <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)
{
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_ */