From a727150c8da58b7dafdb5135b907a90dc4187e14 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 4 Sep 2019 11:40:04 +0200 Subject: [PATCH] db/simple/Song: remove StringView constructor --- src/db/plugins/simple/Song.cxx | 7 ------- src/db/plugins/simple/Song.hxx | 2 -- 2 files changed, 9 deletions(-) diff --git a/src/db/plugins/simple/Song.cxx b/src/db/plugins/simple/Song.cxx index 94fec6811..d4ee34c90 100644 --- a/src/db/plugins/simple/Song.cxx +++ b/src/db/plugins/simple/Song.cxx @@ -23,13 +23,6 @@ #include "song/DetachedSong.hxx" #include "song/LightSong.hxx" #include "fs/Traits.hxx" -#include "util/StringView.hxx" - -inline -Song::Song(StringView _uri, Directory &_parent) noexcept - :parent(_parent), uri(_uri.data, _uri.size) -{ -} Song::Song(DetachedSong &&other, Directory &_parent) noexcept :tag(std::move(other.WritableTag())), diff --git a/src/db/plugins/simple/Song.hxx b/src/db/plugins/simple/Song.hxx index 9884d5922..8261748a8 100644 --- a/src/db/plugins/simple/Song.hxx +++ b/src/db/plugins/simple/Song.hxx @@ -97,8 +97,6 @@ struct Song { Song(U &&_uri, Directory &_parent) noexcept :parent(_parent), uri(std::forward(_uri)) {} - Song(StringView _uri, Directory &parent) noexcept; - Song(DetachedSong &&other, Directory &_parent) noexcept; /**