From e9c9a39c069bedad2ccededaaefeec690e988c99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Botond=20D=C3=A9nes?= Date: Thu, 21 Oct 2021 16:36:48 +0300 Subject: [PATCH] service: storage_service: remove unused unregister_client_shutdown_hook Nobody seems to unregister client shutdown hooks ever. We are about to refactor the client shutdown hook machinery so remove this unused code to make this easier. --- service/storage_service.hh | 7 ------- 1 file changed, 7 deletions(-) diff --git a/service/storage_service.hh b/service/storage_service.hh index 5db2b7499b..4c786ba91a 100644 --- a/service/storage_service.hh +++ b/service/storage_service.hh @@ -339,13 +339,6 @@ public: void register_client_shutdown_hook(std::string name, client_shutdown_hook hook) { _client_shutdown_hooks.push_back({std::move(name), std::move(hook)}); } - void unregister_client_shutdown_hook(std::string name) { - auto it = std::find_if(_client_shutdown_hooks.begin(), _client_shutdown_hooks.end(), - [&name] (const std::pair& hook) { return hook.first == name; }); - if (it != _client_shutdown_hooks.end()) { - _client_shutdown_hooks.erase(it); - } - } private: future<> do_stop_ms(); future<> do_stop_stream_manager();