[core] Remove StyleLayer::isBackground()

This commit is contained in:
John Firebaugh
2015-10-19 17:12:07 -07:00
parent bb4bf9a779
commit 1f4144c65a
3 changed files with 1 additions and 8 deletions

View File

@@ -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) {

View File

@@ -29,10 +29,6 @@ std::unique_ptr<StyleLayer> StyleLayer::create(StyleLayerType type) {
}
}
bool StyleLayer::isBackground() const {
return type == StyleLayerType::Background;
}
bool StyleLayer::hasRenderPass(RenderPass pass) const {
return bool(passes & pass);
}

View File

@@ -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;