summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-01-02 13:12:40 +0100
committerMax Kellermann <max@musicpd.org>2018-01-02 14:16:57 +0100
commit8c7d7dfa5bf37ff80bbe7fb1cf9d7221f9211e1d (patch)
treee61b7f013e764fd690c4cf4a83b2b3003ec9aba1 /src
parentcdf615f7836a955223cf7e6df697c525924bd9b3 (diff)
lib/upnp/Util: remove unused function csvToStrings()
Diffstat (limited to 'src')
-rw-r--r--src/lib/upnp/Util.cxx31
-rw-r--r--src/lib/upnp/Util.hxx4
2 files changed, 0 insertions, 35 deletions
diff --git a/src/lib/upnp/Util.cxx b/src/lib/upnp/Util.cxx
index e88932b55..c1206a7ed 100644
--- a/src/lib/upnp/Util.cxx
+++ b/src/lib/upnp/Util.cxx
@@ -102,34 +102,3 @@ stringToTokens(const std::string &str,
return tokens;
}
-
-template <class T>
-bool
-csvToStrings(const char *s, T &tokens) noexcept
-{
- assert(tokens.empty());
-
- std::string current;
-
- while (true) {
- char ch = *s++;
- if (ch == 0) {
- tokens.emplace_back(std::move(current));
- return true;
- }
-
- if (ch == '\\') {
- ch = *s++;
- if (ch == 0)
- return false;
- } else if (ch == ',') {
- tokens.emplace_back(std::move(current));
- current.clear();
- continue;
- }
-
- current.push_back(ch);
- }
-}
-
-template bool csvToStrings<std::list<std::string>>(const char *, std::list<std::string> &) noexcept;
diff --git a/src/lib/upnp/Util.hxx b/src/lib/upnp/Util.hxx
index 5ff2710a6..de1950d5b 100644
--- a/src/lib/upnp/Util.hxx
+++ b/src/lib/upnp/Util.hxx
@@ -35,8 +35,4 @@ gcc_pure
std::list<std::string>
stringToTokens(const std::string &str, char delim) noexcept;
-template <class T>
-bool
-csvToStrings(const char *s, T &tokens) noexcept;
-
#endif /* _UPNPP_H_X_INCLUDED_ */