emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 3ff83246c86 1/2: Delete unused functions


From: Po Lu
Subject: master 3ff83246c86 1/2: Delete unused functions
Date: Sat, 11 May 2024 02:43:06 -0400 (EDT)

branch: master
commit 3ff83246c86a64600712b48631b900d23c806244
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Delete unused functions
    
    * java/org/gnu/emacs/EmacsNative.java (dup, close):
    
    * src/android.c (dup, close): Delete functions no longer
    referenced.
---
 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)
 {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]