diff --git a/wsd/DocumentBroker.cpp b/wsd/DocumentBroker.cpp index dfbad935de58..b122064f43eb 100644 --- a/wsd/DocumentBroker.cpp +++ b/wsd/DocumentBroker.cpp @@ -314,30 +314,6 @@ void DocumentBroker::pollThread() setupPriorities(); - // Download and load the document. - if (_initialWopiFileInfo) - { - try - { - downloadAdvance(_childProcess->getJailId(), _uriPublic, std::move(_initialWopiFileInfo)); - } - catch (const std::exception& exc) - { - LOG_ERR("Failed to advance download [" << _docKey << "]: " << exc.what()); - - stop("advance download failed"); - - // Stop to mark it done and cleanup. - _poll->stop(); - - // Async cleanup. - COOLWSD::doHousekeeping(); - - return; - } - } - - #if !MOBILEAPP CONFIG_STATIC const std::size_t IdleDocTimeoutSecs = ConfigUtil::getConfigValue("per_document.idle_timeout_secs", 3600); diff --git a/wsd/DocumentBroker.hpp b/wsd/DocumentBroker.hpp index e65cbc9a39b5..8e41417c1b04 100644 --- a/wsd/DocumentBroker.hpp +++ b/wsd/DocumentBroker.hpp @@ -1406,10 +1406,6 @@ class DocumentBroker : public std::enable_shared_from_this std::string _filename; std::atomic _migrateMsgReceived = false; - /// The WopiFileInfo of the initial request loading the document for the first time. - /// This has a single-use, and then it's reset. - std::unique_ptr _initialWopiFileInfo; - /// The state of the document. /// This regulates all other primary operations. class DocumentState final