[Libreoffice-commits] online.git: net/Socket.hpp
Gabriele Ponzo (via logerrit)
logerrit at kemper.freedesktop.org
Tue Feb 4 11:10:10 UTC 2020
net/Socket.hpp | 16 ----------------
1 file changed, 16 deletions(-)
New commits:
commit 9586b4137885075b68eb2bdfb3c86e9913d93e22
Author: Gabriele Ponzo <gabriele.ponzo at documentfoundation.org>
AuthorDate: Tue Feb 4 11:29:57 2020 +0100
Commit: Michael Meeks <michael.meeks at collabora.com>
CommitDate: Tue Feb 4 12:09:51 2020 +0100
Remove unused method.
Change-Id: I18276c1ee074361ab70c3c27fc09bb5ba2429738
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/87963
Reviewed-by: Michael Meeks <michael.meeks at collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
diff --git a/net/Socket.hpp b/net/Socket.hpp
index 98479841b..c95b93dd7 100644
--- a/net/Socket.hpp
+++ b/net/Socket.hpp
@@ -696,22 +696,6 @@ public:
virtual void dumpState(std::ostream& os);
- /// Removes a socket from this poller.
- /// NB. this must be called from the socket poll that
- /// owns the socket.
- void releaseSocket(const std::shared_ptr<Socket>& socket)
- {
- assert(socket);
- assertCorrectThread();
- socket->assertCorrectThread();
- auto it = std::find(_pollSockets.begin(), _pollSockets.end(), socket);
- assert(it != _pollSockets.end());
-
- _pollSockets.erase(it);
- LOG_DBG("Removing socket #" << socket->getFD() << " (of " <<
- _pollSockets.size() << ") from " << _name);
- }
-
size_t getSocketCount() const
{
assertCorrectThread();
More information about the Libreoffice-commits
mailing list