From e8caabbc0bd474e1468a9a17c36f5f36d2bd67e8 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Thu, 16 Jun 2022 15:14:47 +0100 Subject: [PATCH] remove unused method. Change-Id: I79839a819426a3f0eff9db4fa3864512de0e95f0 Signed-off-by: Michael Meeks --- wsd/TileCache.cpp | 21 --------------------- wsd/TileCache.hpp | 5 ----- 2 files changed, 26 deletions(-) diff --git a/wsd/TileCache.cpp b/wsd/TileCache.cpp index a9fc3bdb6..62abcf4fd 100644 --- a/wsd/TileCache.cpp +++ b/wsd/TileCache.cpp @@ -427,27 +427,6 @@ void TileCache::subscribeToTileRendering(const TileDesc& tile, const std::shared } } -void TileCache::registerTileBeingRendered(const TileDesc& tile) -{ - std::shared_ptr tileBeingRendered = findTileBeingRendered(tile); - auto now = std::chrono::steady_clock::now(); - if (tileBeingRendered) - { - if (tileBeingRendered->isStale(&now)) - { - // Tile painting has stalled. Reissue. - tileBeingRendered->setVersion(tile.getVersion()); - } - } - else - { - assert(_tilesBeingRendered.find(tile) == _tilesBeingRendered.end()); - - tileBeingRendered = std::make_shared(tile, now); - _tilesBeingRendered[tile] = tileBeingRendered; - } -} - std::string TileCache::cancelTiles(const std::shared_ptr &subscriber) { assert(subscriber && "cancelTiles expects valid subscriber"); diff --git a/wsd/TileCache.hpp b/wsd/TileCache.hpp index 2df42b758..e0e8445b6 100644 --- a/wsd/TileCache.hpp +++ b/wsd/TileCache.hpp @@ -197,11 +197,6 @@ public: void subscribeToTileRendering(const TileDesc& tile, const std::shared_ptr& subscriber, const std::chrono::steady_clock::time_point& now); - /// Create the TileBeingRendered object for the given tile indicating that the tile was sent to - /// the kit for rendering. Note: subscribeToTileRendering calls this internally, so you don't need - /// to call this method if you need also to subscribe for the rendered tile. - void registerTileBeingRendered(const TileDesc& tile); - /// Cancels all tile requests by the given subscriber. std::string cancelTiles(const std::shared_ptr& subscriber);