Bug 716673 - Remove unnecessary finalize() function. r=pcwalton

The finalize will never be called because GeckoAppShell holds
on to the PZC (as a GeckoEventListener) thereby preventing it
from ever getting GC'd.
This commit is contained in:
Kartikaya Gupta 2012-01-10 10:05:40 -05:00
Родитель b71831f2db
Коммит 8db9e488e0
1 изменённых файлов: 0 добавлений и 9 удалений

Просмотреть файл

@ -166,15 +166,6 @@ public class PanZoomController
GeckoAppShell.registerGeckoEventListener("Gesture:ScrollAck", this);
}
protected void finalize() throws Throwable {
GeckoAppShell.unregisterGeckoEventListener("Browser:ZoomToRect", this);
GeckoAppShell.unregisterGeckoEventListener("Browser:ZoomToPageWidth", this);
GeckoAppShell.unregisterGeckoEventListener("Panning:Override", this);
GeckoAppShell.unregisterGeckoEventListener("Panning:CancelOverride", this);
GeckoAppShell.unregisterGeckoEventListener("Gesture:ScrollAck", this);
super.finalize();
}
public void handleMessage(String event, JSONObject message) {
Log.i(LOGTAG, "Got message: " + event);
try {