Bug 740061. Remove unused invalidate(rect). r=kats

This commit is contained in:
Jeff Muizelaar 2012-03-31 13:02:37 -04:00
parent 55780e3e28
commit aaa63d8381

View File

@ -92,18 +92,15 @@ public abstract class TileLayer extends Layer {
}
/**
* Invalidates the given rect so that it will be uploaded again. Only valid inside a
* Invalidates the entire buffer so that it will be uploaded again. Only valid inside a
* transaction.
*/
public void invalidate(Rect rect) {
if (!inTransaction())
throw new RuntimeException("invalidate() is only valid inside a transaction");
mDirtyRect.union(rect);
}
public void invalidate() {
if (!inTransaction())
throw new RuntimeException("invalidate() is only valid inside a transaction");
IntSize bufferSize = mImage.getSize();
invalidate(new Rect(0, 0, bufferSize.width, bufferSize.height));
mDirtyRect.union(new Rect(0, 0, bufferSize.width, bufferSize.height));
}
public boolean isDirty() {