From 8f9ba96c59f7d3563e1c3229675ecf7ad16fc334 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 8 Jan 2014 23:35:37 +0100 Subject: 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. --- src/SongUpdate.cxx | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/SongUpdate.cxx') 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; -} -- cgit v1.2.3