summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPranav Kant <pranavk@collabora.co.uk>2018-02-02 00:36:53 +0530
committerAndras Timar <andras.timar@collabora.com>2018-02-15 14:05:38 +0100
commit30e867946ebfb668565387204171b975f55d7c2e (patch)
tree54b52ea125ad43a4be8f4e7aa262f8f16eac4c05
parentwsd: Don't save if document ends up being unmodified (diff)
downloadonline-30e867946ebfb668565387204171b975f55d7c2e.tar.gz
online-30e867946ebfb668565387204171b975f55d7c2e.zip
wsd: Bin superfluous public method
Passing the reason to stop() method also does the same thing. Change-Id: I16b648495382c14f31839acca815835df76d8dca Reviewed-on: https://gerrit.libreoffice.org/49750 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com>
-rw-r--r--wsd/DocumentBroker.hpp3
-rw-r--r--wsd/LOOLWSD.cpp3
2 files changed, 1 insertions, 5 deletions
diff --git a/wsd/DocumentBroker.hpp b/wsd/DocumentBroker.hpp
index 1571e42673..a398e70164 100644
--- a/wsd/DocumentBroker.hpp
+++ b/wsd/DocumentBroker.hpp
@@ -349,9 +349,6 @@ public:
/// Sends a message to all sessions
void broadcastMessage(const std::string& message);
- /// Sets the reason for closing document;
- void setCloseReason(const std::string& closeReason) { _closeReason = closeReason; }
-
private:
/// Shutdown all client connections with the given reason.
diff --git a/wsd/LOOLWSD.cpp b/wsd/LOOLWSD.cpp
index 1f60f24bb2..b713ac0cfd 100644
--- a/wsd/LOOLWSD.cpp
+++ b/wsd/LOOLWSD.cpp
@@ -1547,8 +1547,7 @@ private:
{
auto lock = docBroker->getLock();
docBroker->assertCorrectThread();
- docBroker->setCloseReason("docdisconnected");
- docBroker->stop("Lost connection with LOKit.");
+ docBroker->stop("docisdisconnected");
}
}