diff options
author | Brian Hinz <bphinz@users.sourceforge.net> | 2011-10-09 17:31:11 +0000 |
---|---|---|
committer | Brian Hinz <bphinz@users.sourceforge.net> | 2011-10-09 17:31:11 +0000 |
commit | 6a42a371e4b82f30f14cc0eb4ff0eb6c134ba369 (patch) | |
tree | 1943fd35668d871eef41e7065ffcd047fce7d76e /java/com/tigervnc/rfb/ScreenSet.java | |
parent | 38443b8cef8e7d084fe97c60204f075b322a1d15 (diff) | |
download | tigervnc-6a42a371e4b82f30f14cc0eb4ff0eb6c134ba369.tar.gz tigervnc-6a42a371e4b82f30f14cc0eb4ff0eb6c134ba369.zip |
cleaned up unused local variables, unnecessary package imports, and fixed some methods and variables that were incorrectly defined as static
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4717 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'java/com/tigervnc/rfb/ScreenSet.java')
-rw-r--r-- | java/com/tigervnc/rfb/ScreenSet.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/java/com/tigervnc/rfb/ScreenSet.java b/java/com/tigervnc/rfb/ScreenSet.java index 071282ff..905d77e5 100644 --- a/java/com/tigervnc/rfb/ScreenSet.java +++ b/java/com/tigervnc/rfb/ScreenSet.java @@ -31,10 +31,10 @@ public class ScreenSet { screens = new ArrayList<Screen>(); } - public static final int num_screens() { return screens.size(); } + public final int num_screens() { return screens.size(); } - public static final void add_screen(Screen screen) { screens.add(screen); } - public static final void remove_screen(int id) { + public final void add_screen(Screen screen) { screens.add(screen); } + public final void remove_screen(int id) { for (Iterator iter = screens.iterator(); iter.hasNext(); ) { Screen refScreen = (Screen)iter.next(); if (refScreen.id == id) @@ -42,7 +42,7 @@ public class ScreenSet { } } - public static final boolean validate(int fb_width, int fb_height) { + public final boolean validate(int fb_width, int fb_height) { List<Integer> seen_ids = new ArrayList<Integer>(); Rect fb_rect = new Rect(); @@ -81,7 +81,7 @@ public class ScreenSet { //inline bool operator(const ScreenSet& r) const { return screens == r.screens; } //inline bool operator(const ScreenSet& r) const { return screens != r.screens; } - public static List<Screen> screens; + public ArrayList<Screen> screens; static LogWriter vlog = new LogWriter("ScreenSet"); |