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.
This commit is contained in:
Botond Dénes
2021-10-21 16:36:48 +03:00
parent f56f4ade22
commit e9c9a39c06

View File

@@ -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<std::string, client_shutdown_hook>& 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();