Skip to content

Commit

Permalink
downloadAdvance is unused
Browse files Browse the repository at this point in the history
Signed-off-by: Caolán McNamara <[email protected]>
Change-Id: I288872f5dc7a4680dc88c7bb2b6dea757bdaf2c2
  • Loading branch information
caolanm committed Nov 21, 2024
1 parent d181e89 commit 51cdc81
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
15 changes: 0 additions & 15 deletions wsd/DocumentBroker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<WopiStorage::WOPIFileInfo> 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<ClientSession>& session, const std::string& jailId,
const Poco::URI& uriPublic,
Expand Down
4 changes: 0 additions & 4 deletions wsd/DocumentBroker.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -547,10 +547,6 @@ class DocumentBroker : public std::enable_shared_from_this<DocumentBroker>

void refreshLock();

/// Downloads the document ahead-of-time.
bool downloadAdvance(const std::string& jailId, const Poco::URI& uriPublic,
std::unique_ptr<WopiStorage::WOPIFileInfo> wopiFileInfo);

/// Loads a document from the public URI into the jail.
bool download(const std::shared_ptr<ClientSession>& session, const std::string& jailId,
const Poco::URI& uriPublic,
Expand Down

0 comments on commit 51cdc81

Please sign in to comment.