diff --git a/wsd/DocumentBroker.cpp b/wsd/DocumentBroker.cpp index b122064f43eb..85e58a6fd79c 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 8e41417c1b04..a0e20dd6bbc9 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,