Tidied up unused variables, added serialVersionUIDs as appropriate,

removed a few unnecessary casts and brackets and exceptions.
This commit is contained in:
Caspian Rychlik-Prince 2006-04-21 11:11:21 +00:00
parent 5db7a9a7b8
commit 16524516cd
22 changed files with 42 additions and 26 deletions

View file

@ -55,6 +55,9 @@ import org.lwjgl.Sys;
* $Id$
*/
public class AWTGLCanvas extends Canvas implements Drawable, ComponentListener, HierarchyListener {
private static final long serialVersionUID = 1L;
private final static AWTCanvasImplementation implementation;
private boolean update_context;
private Object SYNC_LOCK = new Object();
@ -173,7 +176,7 @@ public class AWTGLCanvas extends Canvas implements Drawable, ComponentListener,
/**
* Set swap interval.
*/
public void setSwapInterval(int swap_interval) throws LWJGLException {
public void setSwapInterval(int swap_interval) {
synchronized(SYNC_LOCK) {
if (context == null)
throw new IllegalStateException("Canvas not yet displayable");
@ -184,7 +187,7 @@ public class AWTGLCanvas extends Canvas implements Drawable, ComponentListener,
/**
* Enable vsync
*/
public void setVSyncEnabled(boolean enabled) throws LWJGLException {
public void setVSyncEnabled(boolean enabled) {
setSwapInterval(enabled ? 1 : 0);
}