[Libreoffice-commits] online.git: common/Session.cpp common/Session.hpp

Michael Meeks (via logerrit) logerrit at kemper.freedesktop.org
Sat Mar 7 10:28:26 UTC 2020


 common/Session.cpp |    7 -------
 common/Session.hpp |    3 ---
 2 files changed, 10 deletions(-)

New commits:
commit 019f268ffd6f87471c52b5d15e040fb7a086c24e
Author:     Michael Meeks <michael.meeks at collabora.com>
AuthorDate: Thu Mar 5 22:15:13 2020 +0000
Commit:     Michael Meeks <michael.meeks at collabora.com>
CommitDate: Sat Mar 7 11:28:08 2020 +0100

    handleDisconnect - unused.
    
    Change-Id: Ib305f762ae33424c8a598d5c31eeda31b9c87555
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/90137
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Michael Meeks <michael.meeks at collabora.com>

diff --git a/common/Session.cpp b/common/Session.cpp
index 3e15330e9..4b4c563d6 100644
--- a/common/Session.cpp
+++ b/common/Session.cpp
@@ -196,13 +196,6 @@ void Session::disconnect()
     }
 }
 
-bool Session::handleDisconnect()
-{
-    _disconnected = true;
-    shutdown();
-    return false;
-}
-
 void Session::shutdown(const WebSocketHandler::StatusCodes statusCode, const std::string& statusMessage)
 {
     LOG_TRC("Shutting down WS [" << getName() << "] with statusCode [" <<
diff --git a/common/Session.hpp b/common/Session.hpp
index ec552f9d7..6b5e93322 100644
--- a/common/Session.hpp
+++ b/common/Session.hpp
@@ -97,9 +97,6 @@ public:
     /// Invoked when we want to disconnect a session.
     virtual void disconnect();
 
-    /// Called to handle disconnection command from socket.
-    virtual bool handleDisconnect();
-
     /// clean & normal shutdown
     void shutdownNormal(const std::string& statusMessage = "")
         { shutdown(WebSocketHandler::StatusCodes::NORMAL_CLOSE, statusMessage); }


More information about the Libreoffice-commits mailing list