]> git.eshelyaron.com Git - emacs.git/commitdiff
Delete unused functions
authorPo Lu <luangruo@yahoo.com>
Sat, 11 May 2024 06:34:32 +0000 (14:34 +0800)
committerEshel Yaron <me@eshelyaron.com>
Sun, 12 May 2024 15:48:52 +0000 (17:48 +0200)
* 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
src/android.c

index b2764edad10cc803655496079ddb6d2c98a05066..97415fcb8768c90ae74d72ca480e4f4c20fcac77 100644 (file)
@@ -36,12 +36,6 @@ public final class EmacsNative
   private static final String[] libraryDeps;
 
 \f
-  /* 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 ();
index d3b0bc214786b4ae699e32663435cd039b8d0ed3..c25ecd88a5ac6b184af5a2f166cd9663041d0b6f 100644 (file)
@@ -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)
 {