harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r618665 - in /harmony/enhanced/classlib/trunk/modules/luni/src/main: java/org/apache/harmony/luni/platform/OSNetworkSystem.java native/luni/shared/OSNetworkSystem.c
Date Tue, 05 Feb 2008 14:47:12 GMT
Author: hindessm
Date: Tue Feb  5 06:47:06 2008
New Revision: 618665

URL: http://svn.apache.org/viewvc?rev=618665&view=rev
Log:
Remove unused code and related comments.

Modified:
    harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/platform/OSNetworkSystem.java
    harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/OSNetworkSystem.c

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/platform/OSNetworkSystem.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/platform/OSNetworkSystem.java?rev=618665&r1=618664&r2=618665&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/platform/OSNetworkSystem.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/platform/OSNetworkSystem.java
Tue Feb  5 06:47:06 2008
@@ -63,13 +63,6 @@
 		return ref;
 	}
 
-	// Useing when cache set/get is OK
-	// public static native void oneTimeInitializationDatagram(
-	// boolean jcl_IPv6_support);
-	//
-	// public static native void oneTimeInitializationSocket(
-	// boolean jcl_IPv6_support);
-
 	// --------------------------------------------------
 	// java codes that wrap native codes
 	// --------------------------------------------------

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/OSNetworkSystem.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/OSNetworkSystem.c?rev=618665&r1=618664&r2=618665&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/OSNetworkSystem.c
(original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/OSNetworkSystem.c
Tue Feb  5 06:47:06 2008
@@ -257,43 +257,6 @@
 
 /*
  * Class:     org_apache_harmony_luni_platform_OSNetworkSystem
- * Method:    oneTimeInitializationDatagram
- * Signature: (Z)V
- */
-JNIEXPORT void JNICALL Java_org_apache_harmony_luni_platform_OSNetworkSystem_oneTimeInitializationDatagram(JNIEnv
* env,
-		   jclass clazz,
-		   jboolean
-		   ipv6support)	
-{
-  jclass lookupClass;
-  jfieldID fid;	
-
-  netInitializeIDCaches	(env, ipv6support);
-
-  lookupClass =	(*env)->FindClass (env,	"java/net/DatagramPacket");
-  if (!lookupClass)
-    return;
-
-  fid =	
-    (*env)->GetFieldID (env, lookupClass, "address",
-      "Ljava/net/InetAddress;");
-  if (!fid)
-    return;
-  HARMONY_CACHE_SET	(env, FID_java_net_DatagramPacket_address, fid);
-
-  fid =	(*env)->GetFieldID (env, lookupClass, "length",	"I");
-  if (!fid)
-    return;
-  HARMONY_CACHE_SET	(env, FID_java_net_DatagramPacket_length, fid);	
-
-  fid =	(*env)->GetFieldID (env, lookupClass, "port", "I");
-  if (!fid)
-    return;
-  HARMONY_CACHE_SET	(env, FID_java_net_DatagramPacket_port,	fid);
-}
-
-/*
- * Class:     org_apache_harmony_luni_platform_OSNetworkSystem
  * Method:    oneTimeInitializationImpl
  * Signature: (Z)V
  */



Mime
View raw message