command: remove the obsolete Error support code

This commit is contained in:
Max Kellermann
2016-11-10 12:51:22 +01:00
parent 43b285ef7a
commit 741c6f1179
4 changed files with 1 additions and 42 deletions

View File

@@ -32,7 +32,6 @@
#include "AudioFormat.hxx"
#include "ReplayGainConfig.hxx"
#include "util/ScopeExit.hxx"
#include "util/Error.hxx"
#ifdef ENABLE_DATABASE
#include "db/update/Service.hxx"
@@ -196,8 +195,6 @@ handle_status(Client &client, gcc_unused Request args, Response &r)
client.player_control.LockCheckRethrowError();
} catch (const std::exception &e) {
r.Format(COMMAND_STATUS_ERROR ": %s\n", e.what());
} catch (const Error &error) {
r.Format(COMMAND_STATUS_ERROR ": %s\n", error.GetMessage());
} catch (...) {
r.Format(COMMAND_STATUS_ERROR ": unknown\n");
}