diff --git a/src/mbgl/map/tile_worker.cpp b/src/mbgl/map/tile_worker.cpp index c4a38c923..e1f93dc03 100644 --- a/src/mbgl/map/tile_worker.cpp +++ b/src/mbgl/map/tile_worker.cpp @@ -79,7 +79,7 @@ void TileWorker::parseLayer(const StyleLayer& layer, const GeometryTile& geometr return; // Background is a special case. - if (layer.isBackground()) + if (layer.type == StyleLayerType::Background) return; if (!layer.bucket) { diff --git a/src/mbgl/style/style_layer.cpp b/src/mbgl/style/style_layer.cpp index e6b3ee5bd..61de61217 100644 --- a/src/mbgl/style/style_layer.cpp +++ b/src/mbgl/style/style_layer.cpp @@ -29,10 +29,6 @@ std::unique_ptr StyleLayer::create(StyleLayerType type) { } } -bool StyleLayer::isBackground() const { - return type == StyleLayerType::Background; -} - bool StyleLayer::hasRenderPass(RenderPass pass) const { return bool(passes & pass); } diff --git a/src/mbgl/style/style_layer.hpp b/src/mbgl/style/style_layer.hpp index d44b2ce7c..febfb27fe 100644 --- a/src/mbgl/style/style_layer.hpp +++ b/src/mbgl/style/style_layer.hpp @@ -29,9 +29,6 @@ public: virtual ~StyleLayer() = default; - // Determines whether this layer is the background layer. - bool isBackground() const; - // Checks whether this layer needs to be rendered in the given render pass. bool hasRenderPass(RenderPass) const;