[core] remove unused TimePoint during Source update
This commit is contained in:
@@ -227,7 +227,6 @@ void Map::Impl::update() {
|
||||
|
||||
style::UpdateParameters parameters(pixelRatio,
|
||||
debugOptions,
|
||||
timePoint,
|
||||
transform.getState(),
|
||||
style->workers,
|
||||
fileSource,
|
||||
|
||||
@@ -179,8 +179,6 @@ bool Source::Impl::parseTiles(const UpdateParameters& parameters) {
|
||||
}
|
||||
}
|
||||
|
||||
updated = parameters.animationTime;
|
||||
|
||||
return allTilesUpdated;
|
||||
}
|
||||
|
||||
|
||||
@@ -88,9 +88,6 @@ private:
|
||||
virtual Range<uint8_t> getZoomRange() = 0;
|
||||
virtual std::unique_ptr<Tile> createTile(const OverscaledTileID&, const UpdateParameters&) = 0;
|
||||
|
||||
// Stores the time when this source was most recently updated.
|
||||
TimePoint updated = TimePoint::min();
|
||||
|
||||
std::map<OverscaledTileID, std::unique_ptr<Tile>> tiles;
|
||||
std::map<UnwrappedTileID, RenderTile> renderTiles;
|
||||
TileCache cache;
|
||||
|
||||
@@ -17,7 +17,6 @@ class UpdateParameters {
|
||||
public:
|
||||
UpdateParameters(float pixelRatio_,
|
||||
MapDebugOptions debugOptions_,
|
||||
TimePoint animationTime_,
|
||||
const TransformState& transformState_,
|
||||
Worker& worker_,
|
||||
FileSource& fileSource_,
|
||||
@@ -27,7 +26,6 @@ public:
|
||||
Style& style_)
|
||||
: pixelRatio(pixelRatio_),
|
||||
debugOptions(debugOptions_),
|
||||
animationTime(std::move(animationTime_)),
|
||||
transformState(transformState_),
|
||||
worker(worker_),
|
||||
fileSource(fileSource_),
|
||||
@@ -38,7 +36,6 @@ public:
|
||||
|
||||
float pixelRatio;
|
||||
MapDebugOptions debugOptions;
|
||||
TimePoint animationTime;
|
||||
const TransformState& transformState;
|
||||
Worker& worker;
|
||||
FileSource& fileSource;
|
||||
|
||||
@@ -38,7 +38,6 @@ public:
|
||||
style::UpdateParameters updateParameters {
|
||||
1.0,
|
||||
MapDebugOptions(),
|
||||
TimePoint(),
|
||||
transformState,
|
||||
worker,
|
||||
fileSource,
|
||||
|
||||
Reference in New Issue
Block a user