[core] remove unused TimePoint during Source update

This commit is contained in:
Konstantin Käfer
2016-09-05 19:04:34 +02:00
parent 46b73b8a2c
commit 4eb54270d7
5 changed files with 0 additions and 10 deletions

View File

@@ -227,7 +227,6 @@ void Map::Impl::update() {
style::UpdateParameters parameters(pixelRatio,
debugOptions,
timePoint,
transform.getState(),
style->workers,
fileSource,

View File

@@ -179,8 +179,6 @@ bool Source::Impl::parseTiles(const UpdateParameters& parameters) {
}
}
updated = parameters.animationTime;
return allTilesUpdated;
}

View File

@@ -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;

View File

@@ -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;

View File

@@ -38,7 +38,6 @@ public:
style::UpdateParameters updateParameters {
1.0,
MapDebugOptions(),
TimePoint(),
transformState,
worker,
fileSource,