db/simple/Song: remove StringView constructor

This commit is contained in:
Max Kellermann 2019-09-04 11:40:04 +02:00
parent 949916cba1
commit a727150c8d
2 changed files with 0 additions and 9 deletions

View File

@ -23,13 +23,6 @@
#include "song/DetachedSong.hxx" #include "song/DetachedSong.hxx"
#include "song/LightSong.hxx" #include "song/LightSong.hxx"
#include "fs/Traits.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 Song::Song(DetachedSong &&other, Directory &_parent) noexcept
:tag(std::move(other.WritableTag())), :tag(std::move(other.WritableTag())),

View File

@ -97,8 +97,6 @@ struct Song {
Song(U &&_uri, Directory &_parent) noexcept Song(U &&_uri, Directory &_parent) noexcept
:parent(_parent), uri(std::forward<U>(_uri)) {} :parent(_parent), uri(std::forward<U>(_uri)) {}
Song(StringView _uri, Directory &parent) noexcept;
Song(DetachedSong &&other, Directory &_parent) noexcept; Song(DetachedSong &&other, Directory &_parent) noexcept;
/** /**