mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-28 10:41:12 +00:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user