harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r585151 - /harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/nethelp.c
Date Tue, 16 Oct 2007 14:17:54 GMT
Author: hindessm
Date: Tue Oct 16 07:17:40 2007
New Revision: 585151

URL: http://svn.apache.org/viewvc?rev=585151&view=rev
Log:
Remove function that is no longer used.

Modified:
    harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/nethelp.c

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/nethelp.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/nethelp.c?rev=585151&r1=585150&r2=585151&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/nethelp.c (original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/nethelp.c Tue
Oct 16 07:17:40 2007
@@ -21,8 +21,6 @@
 #include "harmonyglob.h"
 #include "exceptions.h"
 
-jfieldID getJavaIoFileDescriptorDescriptorFID (JNIEnv * env);
-
 /**
  * Set up JNI ID Caches.
  *
@@ -1662,33 +1660,4 @@
     default:
       return (char *) hyfile_error_message ();
     }
-}
-
-/**
-  * This will retrieve the 'descriptor' field value from a java.io.FileDescriptor
-  */
-jfieldID
-getJavaIoFileDescriptorDescriptorFID (JNIEnv * env)
-{
-  jclass descriptorCLS;
-  jfieldID descriptorFID;
-
-  descriptorFID =
-    HARMONY_CACHE_GET (env, FID_java_io_FileDescriptor_descriptor);
-  if (NULL != descriptorFID)
-    {
-      return descriptorFID;
-    }
-  descriptorCLS = (*env)->FindClass (env, "java/io/FileDescriptor");
-  if (NULL == descriptorCLS)
-    {
-      return NULL;
-    }
-  descriptorFID = (*env)->GetFieldID (env, descriptorCLS, "descriptor", "J");
-  if (NULL == descriptorFID)
-    {
-      return NULL;
-    }
-  HARMONY_CACHE_SET (env, FID_java_io_FileDescriptor_descriptor, descriptorFID);
-  return descriptorFID;
 }



Mime
View raw message