Small fixup to my last patch (no bug, r=blassey)

This commit is contained in:
James Willcox 2012-05-11 11:05:37 -04:00
parent 1da9690037
commit 4cf99612e2

View File

@ -290,8 +290,6 @@ public class LayerRenderer implements GLSurfaceView.Renderer {
}
public void addLayer(Layer layer) {
LayerController controller = mView.getController();
synchronized (mExtraLayers) {
if (mExtraLayers.contains(layer)) {
mExtraLayers.remove(layer);
@ -302,8 +300,6 @@ public class LayerRenderer implements GLSurfaceView.Renderer {
}
public void removeLayer(Layer layer) {
LayerController controller = mView.getController();
synchronized (mExtraLayers) {
mExtraLayers.remove(layer);
}