[core] Remove unnecessary explicit destructors
This commit is contained in:
@@ -55,10 +55,6 @@ void RasterTileData::setData(std::shared_ptr<const std::string> data,
|
||||
});
|
||||
}
|
||||
|
||||
RasterTileData::~RasterTileData() {
|
||||
cancel();
|
||||
}
|
||||
|
||||
Bucket* RasterTileData::getBucket(const style::Layer&) {
|
||||
return bucket.get();
|
||||
}
|
||||
|
||||
@@ -21,7 +21,6 @@ public:
|
||||
RasterTileData(const OverscaledTileID&,
|
||||
const style::UpdateParameters&,
|
||||
const Tileset&);
|
||||
~RasterTileData();
|
||||
|
||||
void setNecessity(Necessity) final;
|
||||
|
||||
|
||||
@@ -15,8 +15,6 @@ VectorTileData::VectorTileData(const OverscaledTileID& id_,
|
||||
tileSource(*this, id_, parameters, tileset) {
|
||||
}
|
||||
|
||||
VectorTileData::~VectorTileData() = default;
|
||||
|
||||
void VectorTileData::setNecessity(Necessity necessity) {
|
||||
tileSource.setNecessity(static_cast<TileSource<VectorTileData>::Necessity>(necessity));
|
||||
}
|
||||
|
||||
@@ -18,7 +18,6 @@ public:
|
||||
std::string sourceID,
|
||||
const style::UpdateParameters&,
|
||||
const Tileset&);
|
||||
~VectorTileData();
|
||||
|
||||
void setNecessity(Necessity) final;
|
||||
void setData(std::shared_ptr<const std::string> data,
|
||||
|
||||
Reference in New Issue
Block a user