From 51cdc811c5785407cf68b4358b280230a706f710 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Wed, 20 Nov 2024 15:35:52 +0000 Subject: [PATCH] downloadAdvance is unused MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Caolán McNamara Change-Id: I288872f5dc7a4680dc88c7bb2b6dea757bdaf2c2 --- wsd/DocumentBroker.cpp | 15 --------------- wsd/DocumentBroker.hpp | 4 ---- 2 files changed, 19 deletions(-) diff --git a/wsd/DocumentBroker.cpp b/wsd/DocumentBroker.cpp index b122064f43eb9..85e58a6fd79c0 100644 --- a/wsd/DocumentBroker.cpp +++ b/wsd/DocumentBroker.cpp @@ -888,21 +888,6 @@ void DocumentBroker::stop(const std::string& reason) _poll->wakeup(); } -bool DocumentBroker::downloadAdvance(const std::string& jailId, const Poco::URI& uriPublic, - std::unique_ptr wopiFileInfo) -{ - ASSERT_CORRECT_THREAD(); - - LOG_INF("Loading [" << _docKey << "] ahead-of-time in jail [" << jailId << ']'); - - assert(!_docState.isMarkedToDestroy() && "MarkedToDestroy while downloading ahead-of-time"); - - assert(_storage == nullptr && - "Unexpected to find storage created while downloading ahead-of-time"); - - return download(/*session=*/nullptr, jailId, uriPublic, std::move(wopiFileInfo)); -} - bool DocumentBroker::download( const std::shared_ptr& session, const std::string& jailId, const Poco::URI& uriPublic, diff --git a/wsd/DocumentBroker.hpp b/wsd/DocumentBroker.hpp index 8e41417c1b041..a0e20dd6bbc9f 100644 --- a/wsd/DocumentBroker.hpp +++ b/wsd/DocumentBroker.hpp @@ -547,10 +547,6 @@ class DocumentBroker : public std::enable_shared_from_this void refreshLock(); - /// Downloads the document ahead-of-time. - bool downloadAdvance(const std::string& jailId, const Poco::URI& uriPublic, - std::unique_ptr wopiFileInfo); - /// Loads a document from the public URI into the jail. bool download(const std::shared_ptr& session, const std::string& jailId, const Poco::URI& uriPublic,