removed a couple of unneeded removeListeners() calls in PJOGL

This commit is contained in:
codeanticode
2014-04-10 11:20:00 -04:00
parent 5411ece732
commit 115b579bb1

View File

@@ -392,7 +392,6 @@ public class PJOGL extends PGL {
@Override
protected void registerListeners() {
if (WINDOW_TOOLKIT == AWT) {
pg.parent.removeListeners(pg.parent);
pg.parent.addListeners(canvasAWT);
listener = new PGLListener();
@@ -406,7 +405,6 @@ public class PJOGL extends PGL {
NEWTWindowListener winListener = new NEWTWindowListener();
windowNEWT.addWindowListener(winListener);
} else if (EVENTS_TOOLKIT == AWT) {
pg.parent.removeListeners(canvasNEWT);
pg.parent.addListeners(canvasNEWT);
}