diff options
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/Client.hxx | 6 | ||||
-rw-r--r-- | src/client/ClientList.cxx | 5 |
2 files changed, 2 insertions, 9 deletions
diff --git a/src/client/Client.hxx b/src/client/Client.hxx index 0e3047d58..38127b124 100644 --- a/src/client/Client.hxx +++ b/src/client/Client.hxx @@ -51,12 +51,6 @@ public: struct playlist &playlist; struct PlayerControl &player_control; - struct Disposer { - void operator()(Client *client) const { - delete client; - } - }; - unsigned permission; /** the uid of the client process, or -1 if unknown */ diff --git a/src/client/ClientList.cxx b/src/client/ClientList.cxx index 43a35798f..375e99090 100644 --- a/src/client/ClientList.cxx +++ b/src/client/ClientList.cxx @@ -20,8 +20,7 @@ #include "config.h" #include "ClientList.hxx" #include "ClientInternal.hxx" - -#include <algorithm> +#include "util/DeleteDisposer.hxx" #include <assert.h> @@ -36,7 +35,7 @@ ClientList::Remove(Client &client) void ClientList::CloseAll() { - list.clear_and_dispose(Client::Disposer()); + list.clear_and_dispose(DeleteDisposer()); } void |