summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-06-07 12:19:25 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-06-13 10:57:46 -0700
commit06d9f8f4bbc395a90ad74e38cfbfd88458c0b15a (patch)
tree69336ec8a206e65cb3458d5116c4aa9d9b94c556 /src
parent7c282d074c1e77d69640354ad5b9839fab65360d (diff)
downloadqtlocation-mapboxgl-06d9f8f4bbc395a90ad74e38cfbfd88458c0b15a.tar.gz
[core] Remove unnecessary explicit destructors
Diffstat (limited to 'src')
-rw-r--r--src/mbgl/tile/raster_tile_data.cpp4
-rw-r--r--src/mbgl/tile/raster_tile_data.hpp1
-rw-r--r--src/mbgl/tile/vector_tile_data.cpp2
-rw-r--r--src/mbgl/tile/vector_tile_data.hpp1
4 files changed, 0 insertions, 8 deletions
diff --git a/src/mbgl/tile/raster_tile_data.cpp b/src/mbgl/tile/raster_tile_data.cpp
index 67cf1a089d..7737f1fb7d 100644
--- a/src/mbgl/tile/raster_tile_data.cpp
+++ b/src/mbgl/tile/raster_tile_data.cpp
@@ -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();
}
diff --git a/src/mbgl/tile/raster_tile_data.hpp b/src/mbgl/tile/raster_tile_data.hpp
index ef9e29c0d7..7c224ad812 100644
--- a/src/mbgl/tile/raster_tile_data.hpp
+++ b/src/mbgl/tile/raster_tile_data.hpp
@@ -21,7 +21,6 @@ public:
RasterTileData(const OverscaledTileID&,
const style::UpdateParameters&,
const Tileset&);
- ~RasterTileData();
void setNecessity(Necessity) final;
diff --git a/src/mbgl/tile/vector_tile_data.cpp b/src/mbgl/tile/vector_tile_data.cpp
index b2bb5e2112..e113054af1 100644
--- a/src/mbgl/tile/vector_tile_data.cpp
+++ b/src/mbgl/tile/vector_tile_data.cpp
@@ -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));
}
diff --git a/src/mbgl/tile/vector_tile_data.hpp b/src/mbgl/tile/vector_tile_data.hpp
index a9ea08674f..1d44abaec3 100644
--- a/src/mbgl/tile/vector_tile_data.hpp
+++ b/src/mbgl/tile/vector_tile_data.hpp
@@ -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,