[Libreoffice-commits] online.git: wsd/LOOLWSD.cpp
Ashod Nakashian
ashod.nakashian at collabora.co.uk
Mon Mar 27 03:19:54 UTC 2017
wsd/LOOLWSD.cpp | 46 ----------------------------------------------
1 file changed, 46 deletions(-)
New commits:
commit 2a049cf60f6ca29dc6af570e7a1da2e012faa404
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date: Sun Mar 26 23:05:08 2017 -0400
wsd: kill unused code
Change-Id: I09fb52f0455e45e7217b290d5355019e14b9dbc1
Reviewed-on: https://gerrit.libreoffice.org/35736
Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
Tested-by: Ashod Nakashian <ashnakash at gmail.com>
diff --git a/wsd/LOOLWSD.cpp b/wsd/LOOLWSD.cpp
index df3382a0..d9b1db56 100644
--- a/wsd/LOOLWSD.cpp
+++ b/wsd/LOOLWSD.cpp
@@ -1556,52 +1556,6 @@ private:
}
};
-/// Handles dispatching socket traffic to the ClientSession.
-class ConvertToHandler : public SocketHandlerInterface
-{
-public:
- ConvertToHandler(const std::shared_ptr<ClientSession>& clientSession) :
- _clientSession(clientSession)
- {
- }
-
-private:
-
- /// Set the socket associated with this ResponseClient.
- void onConnect(const std::weak_ptr<StreamSocket>& socket) override
- {
- LOG_ERR("onConnect");
- _socket = socket;
- }
-
- void onDisconnect() override
- {
- LOG_ERR("onDisconnect");
- }
-
- SocketHandlerInterface::SocketOwnership handleIncomingMessage() override
- {
- LOG_ERR("handleIncomingMessage");
- return SocketHandlerInterface::SocketOwnership::UNCHANGED;
- }
-
- int getPollEvents(std::chrono::steady_clock::time_point /* now */,
- int & /* timeoutMaxMs */) override
- {
- return POLLIN;
- }
-
- void performWrites() override
- {
- LOG_ERR("performWrites");
- }
-
-private:
- // The socket that owns us (we can't own it).
- std::weak_ptr<StreamSocket> _socket;
- std::shared_ptr<ClientSession> _clientSession;
-};
-
/// Handles incoming connections and dispatches to the appropriate handler.
class ClientRequestDispatcher : public SocketHandlerInterface
{
More information about the Libreoffice-commits
mailing list