[core] remove unused TileData::hasData()
This commit is contained in:
@@ -82,7 +82,3 @@ void RasterTileData::cancel() {
|
||||
req = nullptr;
|
||||
workRequest.reset();
|
||||
}
|
||||
|
||||
bool RasterTileData::hasData() const {
|
||||
return bucket.get() != nullptr;
|
||||
}
|
||||
|
||||
@@ -23,7 +23,6 @@ public:
|
||||
|
||||
void cancel() override;
|
||||
Bucket* getBucket(StyleLayer const &layer_desc) override;
|
||||
bool hasData() const override;
|
||||
|
||||
private:
|
||||
gl::TexturePool& texturePool;
|
||||
|
||||
@@ -82,9 +82,6 @@ public:
|
||||
return state == State::partial || state == State::parsed;
|
||||
}
|
||||
|
||||
// Returns true when there's at least some data that we can render.
|
||||
virtual bool hasData() const = 0;
|
||||
|
||||
State getState() const {
|
||||
return state;
|
||||
}
|
||||
|
||||
@@ -216,8 +216,4 @@ void VectorTileData::cancel() {
|
||||
workRequest.reset();
|
||||
}
|
||||
|
||||
bool VectorTileData::hasData() const {
|
||||
return !buckets.empty();
|
||||
}
|
||||
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -34,8 +34,6 @@ public:
|
||||
void redoPlacement(PlacementConfig config, const std::function<void()>&) override;
|
||||
void redoPlacement(const std::function<void()>&) override;
|
||||
|
||||
bool hasData() const override;
|
||||
|
||||
void queryRenderedFeatures(
|
||||
std::unordered_map<std::string, std::vector<Feature>>& result,
|
||||
const GeometryCoordinates& queryGeometry,
|
||||
|
||||
Reference in New Issue
Block a user