1.1 --- a/libfsserver/lib/generic/notification.cc Wed Mar 09 18:13:17 2022 +0100
1.2 +++ b/libfsserver/lib/generic/notification.cc Thu Mar 10 23:23:07 2022 +0100
1.3 @@ -1,7 +1,7 @@
1.4 /*
1.5 * Notification support.
1.6 *
1.7 - * Copyright (C) 2021 Paul Boddie <paul@boddie.org.uk>
1.8 + * Copyright (C) 2021, 2022 Paul Boddie <paul@boddie.org.uk>
1.9 *
1.10 * This program is free software; you can redistribute it and/or
1.11 * modify it under the terms of the GNU General Public License as
1.12 @@ -97,31 +97,6 @@
1.13 }
1.14 }
1.15
1.16 -/* Unsubscribe from an endpoint's notifications. */
1.17 -
1.18 -void NotificationSupport::unsubscribe(unsigned int endpoint, l4_cap_idx_t notifier)
1.19 -{
1.20 - std::lock_guard<std::mutex> guard(_lock);
1.21 -
1.22 - if (endpoint >= _endpoints.size())
1.23 - return;
1.24 -
1.25 - NotificationEndpoint &ep = _endpoints[endpoint];
1.26 - NotifierSet::iterator it = ep.notifiers.find(notifier);
1.27 -
1.28 - if (it != ep.notifiers.end())
1.29 - {
1.30 - ep.notifiers.erase(it);
1.31 - ipc_cap_free_um(notifier);
1.32 -
1.33 - if (ep.notifiers.empty())
1.34 - {
1.35 - ep.flags = 0;
1.36 - ep.deferred = 0;
1.37 - }
1.38 - }
1.39 -}
1.40 -
1.41 /* Notify a particular endpoint. */
1.42
1.43 void NotificationSupport::notify(unsigned int endpoint, notify_flags_t flags)