From ff84acac40cb7f9e57ec36a9ea7ad4c1dd70328b Mon Sep 17 00:00:00 2001 From: Po Lu Date: Sat, 11 May 2024 14:34:32 +0800 Subject: [PATCH] Delete unused functions * java/org/gnu/emacs/EmacsNative.java (dup, close): * src/android.c (dup, close): Delete functions no longer referenced. (cherry picked from commit 3ff83246c86a64600712b48631b900d23c806244) --- java/org/gnu/emacs/EmacsNative.java | 6 ------ src/android.c | 16 ---------------- 2 files changed, 22 deletions(-) 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) { -- 2.39.5