diff options
Diffstat (limited to 'libjava/gnu/java/nio/SelectorImpl.java')
-rw-r--r-- | libjava/gnu/java/nio/SelectorImpl.java | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/libjava/gnu/java/nio/SelectorImpl.java b/libjava/gnu/java/nio/SelectorImpl.java index 239a5f8efa9..62d06624616 100644 --- a/libjava/gnu/java/nio/SelectorImpl.java +++ b/libjava/gnu/java/nio/SelectorImpl.java @@ -53,14 +53,6 @@ import gnu.classpath.Configuration; public class SelectorImpl extends AbstractSelector { - static - { - // load the shared library needed for native methods. - if (Configuration.INIT_LOAD_LIBRARY) - { - System.loadLibrary ("javanio"); - } - } private Set keys; private Set selected; @@ -140,11 +132,6 @@ public class SelectorImpl extends AbstractSelector return select (0); } - // A timeout value of 0 means block forever. - private static native int implSelect (int[] read, int[] write, - int[] except, long timeout) - throws IOException; - private final int[] getFDsAsArray (int ops) { int[] result; @@ -237,7 +224,7 @@ public class SelectorImpl extends AbstractSelector try { begin(); - result = implSelect (read, write, except, timeout); + result = VMSelector.select (read, write, except, timeout); } finally { |