diff --git a/wsd/ClientSession.cpp b/wsd/ClientSession.cpp index 3f27a435c..90e099d38 100644 --- a/wsd/ClientSession.cpp +++ b/wsd/ClientSession.cpp @@ -1001,11 +1001,6 @@ bool ClientSession::handleKitToClientMessage(const char* buffer, const int lengt return forwardToClient(payload); } -void ClientSession::cancelTilesInQueue() -{ - _senderQueue.cancelTiles(); -} - bool ClientSession::forwardToClient(const std::shared_ptr& payload) { if (isCloseFrame()) diff --git a/wsd/ClientSession.hpp b/wsd/ClientSession.hpp index 4037d81a2..997058f68 100644 --- a/wsd/ClientSession.hpp +++ b/wsd/ClientSession.hpp @@ -99,8 +99,6 @@ public: } } - void cancelTilesInQueue(); - /// Set the save-as socket which is used to send convert-to results. void setSaveAsSocket(const std::shared_ptr& socket) { diff --git a/wsd/DocumentBroker.cpp b/wsd/DocumentBroker.cpp index cf5c8eb84..be5c3aae4 100644 --- a/wsd/DocumentBroker.cpp +++ b/wsd/DocumentBroker.cpp @@ -1448,7 +1448,6 @@ void DocumentBroker::cancelTileRequests(const std::shared_ptr& se // Clear tile requests session->clearTilesOnFly(); session->getRequestedTiles() = boost::none; - session->cancelTilesInQueue(); session->clearTileSubscription(); diff --git a/wsd/SenderQueue.hpp b/wsd/SenderQueue.hpp index 927e3e735..fc3464b3f 100644 --- a/wsd/SenderQueue.hpp +++ b/wsd/SenderQueue.hpp @@ -84,15 +84,6 @@ public: } } - void cancelTiles() - { - std::remove_if(_queue.begin(), _queue.end(), - [](const queue_item_t& cur) - { - return cur->firstToken() == "tile:"; - }); - } - private: /// Deduplicate messages based on the new one. /// Returns true if the new message should be