Various minor cleanup
This commit is contained in:
@@ -19,9 +19,6 @@
|
||||
|
||||
#include "SubsonicId.hpp"
|
||||
|
||||
#include "SubsonicResponse.hpp"
|
||||
|
||||
#include "core/ILogger.hpp"
|
||||
#include "core/String.hpp"
|
||||
|
||||
namespace lms::api::subsonic
|
||||
@@ -47,11 +44,6 @@ namespace lms::api::subsonic
|
||||
return "al-" + id.toString();
|
||||
}
|
||||
|
||||
std::string idToString(RootId)
|
||||
{
|
||||
return "root";
|
||||
}
|
||||
|
||||
std::string idToString(db::TrackId id)
|
||||
{
|
||||
return "tr-" + id.toString();
|
||||
@@ -122,15 +114,6 @@ namespace lms::core::stringUtils
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
template<>
|
||||
std::optional<api::subsonic::RootId> readAs(std::string_view str)
|
||||
{
|
||||
if (str == "root")
|
||||
return api::subsonic::RootId{};
|
||||
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
template<>
|
||||
std::optional<db::TrackId> readAs(std::string_view str)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user