From 99e1a8a3df1a08464d8529b6988c1665b87c7c8b Mon Sep 17 00:00:00 2001 From: Mikhail Pozdnyakov Date: Mon, 29 Oct 2018 14:29:16 +0200 Subject: Remove style::Layer::is()/as() --- include/mbgl/style/layer.hpp | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'include/mbgl/style/layer.hpp') diff --git a/include/mbgl/style/layer.hpp b/include/mbgl/style/layer.hpp index dd8f1a1e0e..5f12115f87 100644 --- a/include/mbgl/style/layer.hpp +++ b/include/mbgl/style/layer.hpp @@ -15,16 +15,6 @@ namespace mbgl { namespace style { -class FillLayer; -class LineLayer; -class CircleLayer; -class SymbolLayer; -class RasterLayer; -class HillshadeLayer; -class BackgroundLayer; -class CustomLayer; -class FillExtrusionLayer; -class HeatmapLayer; class LayerObserver; class Filter; @@ -51,21 +41,6 @@ public: virtual ~Layer(); - // Check whether this layer is of the given subtype. - template - bool is() const; - - // Dynamically cast this layer to the given subtype. - template - T* as() { - return is() ? reinterpret_cast(this) : nullptr; - } - - template - const T* as() const { - return is() ? reinterpret_cast(this) : nullptr; - } - LayerType getType() const; std::string getID() const; // Source -- cgit v1.2.1