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

@@ -21,10 +21,6 @@ void DebugBucket::render(Painter &painter, const StyleLayer & /*layer_desc*/,
painter.renderDebugText(*this, matrix);
}
bool DebugBucket::hasData() const {
return fontBuffer.index() > 0;
}
void DebugBucket::drawLines(PlainShader& shader) {
array.bind(shader, fontBuffer, BUFFER_OFFSET(0));
MBGL_CHECK_ERROR(glDrawArrays(GL_LINES, 0, (GLsizei)(fontBuffer.index())));