diff --git a/java/org/gnu/emacs/EmacsNative.java b/java/org/gnu/emacs/EmacsNative.java index b2764edad10..97415fcb876 100644 --- a/java/org/gnu/emacs/EmacsNative.java +++ b/java/org/gnu/emacs/EmacsNative.java @@ -36,12 +36,6 @@ public final class EmacsNative private static final String[] libraryDeps; - /* Like `dup' in C. */ - public static native int dup (int fd); - - /* Like `close' in C. */ - public static native int close (int fd); - /* Obtain the fingerprint of this build of Emacs. The fingerprint can be used to determine the dump file name. */ public static native String getFingerprint (); diff --git a/src/android.c b/src/android.c index d3b0bc21478..c25ecd88a5a 100644 --- a/src/android.c +++ b/src/android.c @@ -1307,22 +1307,6 @@ android_create_lib_link (void) #pragma GCC diagnostic ignored "-Wmissing-prototypes" #endif -JNIEXPORT jint JNICALL -NATIVE_NAME (dup) (JNIEnv *env, jobject object, jint fd) -{ - JNI_STACK_ALIGNMENT_PROLOGUE; - - return dup (fd); -} - -JNIEXPORT jint JNICALL -NATIVE_NAME (close) (JNIEnv *env, jobject object, jint fd) -{ - JNI_STACK_ALIGNMENT_PROLOGUE; - - return close (fd); -} - JNIEXPORT jstring JNICALL NATIVE_NAME (getFingerprint) (JNIEnv *env, jobject object) {