From 0adcda387a276f5fcc24e8a3b9d344a736738a4a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 10 May 2014 19:02:33 +0200 Subject: PlaylistCommands: remove redundant playlist_load_spl() call This case is handled already by playlist_open_in_playlist_dir() (via playlist_mapper_open()). And the call didn't work anyway. --- src/command/PlaylistCommands.cxx | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'src/command') diff --git a/src/command/PlaylistCommands.cxx b/src/command/PlaylistCommands.cxx index bc426db4e..e18673544 100644 --- a/src/command/PlaylistCommands.cxx +++ b/src/command/PlaylistCommands.cxx @@ -74,23 +74,7 @@ handle_load(Client &client, int argc, char *argv[]) client.player_control, loader, error)) return print_error(client, error); - if (playlist_load_spl(client.playlist, client.player_control, - argv[1], start_index, end_index, - error)) - return CommandResult::OK; - - if (error.IsDomain(playlist_domain) && - PlaylistResult(error.GetCode()) == PlaylistResult::BAD_NAME) { - /* the message for BAD_NAME is confusing when the - client wants to load a playlist file from the music - directory; patch the Error object to show "no such - playlist" instead */ - Error error2(playlist_domain, int(PlaylistResult::NO_SUCH_LIST), - error.GetMessage()); - error = std::move(error2); - } - - return print_error(client, error); + return CommandResult::OK; } CommandResult -- cgit v1.2.3