aboutsummaryrefslogtreecommitdiffstats
path: root/src/SongUpdate.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-08 23:35:37 +0100
committerMax Kellermann <max@duempel.org>2014-01-08 23:35:37 +0100
commit8f9ba96c59f7d3563e1c3229675ecf7ad16fc334 (patch)
treea738b3a87920ec38bdacb2ecbe44e3ddd2492df7 /src/SongUpdate.cxx
parent10406c73b385c7f536cb737d87680e691a80b508 (diff)
downloadmpd-8f9ba96c59f7d3563e1c3229675ecf7ad16fc334.tar.gz
mpd-8f9ba96c59f7d3563e1c3229675ecf7ad16fc334.tar.xz
mpd-8f9ba96c59f7d3563e1c3229675ecf7ad16fc334.zip
SongUpdate: move code to handle_lsinfo()
Don't create a temporary Song object in handle_lsinfo(). Instead, print all tags while parsing the remote file.
Diffstat (limited to 'src/SongUpdate.cxx')
-rw-r--r--src/SongUpdate.cxx14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/SongUpdate.cxx b/src/SongUpdate.cxx
index fe78e1e0f..953c23961 100644
--- a/src/SongUpdate.cxx
+++ b/src/SongUpdate.cxx
@@ -132,17 +132,3 @@ Song::UpdateFileInArchive()
tag = tag_builder.CommitNew();
return true;
}
-
-bool
-Song::UpdateStream()
-{
- assert(!IsFile());
-
- TagBuilder tag_builder;
- if (!tag_stream_scan(uri, full_tag_handler, &tag_builder))
- return false;
-
- delete tag;
- tag = tag_builder.CommitNew();
- return true;
-}