remove hasData() from Bucket interface

This commit is contained in:
Konstantin Käfer
2015-04-22 18:07:27 +02:00
parent c891df0b5f
commit 839b19330e
11 changed files with 6 additions and 22 deletions

View File

@@ -24,9 +24,5 @@ void RasterTileData::parse() {
}
Bucket* RasterTileData::getBucket(StyleLayer const&) {
if (bucket.hasData()) {
return &bucket;
} else {
return nullptr;
}
return &bucket;
}

View File

@@ -60,9 +60,7 @@ Bucket* VectorTileData::getBucket(StyleLayer const& layer) {
const auto it = buckets.find(layer.bucket->name);
if (it != buckets.end()) {
assert(it->second);
if (it->second->hasData()) {
return it->second.get();
}
return it->second.get();
}
}
return nullptr;