db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r1411164 - in /db/derby/code/trunk/java/engine/org/apache/derby: iapi/services/io/ impl/store/access/btree/index/
Date Mon, 19 Nov 2012 13:22:59 GMT
Author: kahatlen
Date: Mon Nov 19 13:22:58 2012
New Revision: 1411164

URL: http://svn.apache.org/viewvc?rev=1411164&view=rev
Log:
DERBY-2920: Remove unused readExternal() methods

Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/FormatableArrayHolder.java
    db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/FormatableHashtable.java
    db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/FormatableIntHolder.java
    db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/FormatableLongHolder.java
    db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/FormatableProperties.java
    db/derby/code/trunk/java/engine/org/apache/derby/impl/store/access/btree/index/B2IUndo.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/FormatableArrayHolder.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/FormatableArrayHolder.java?rev=1411164&r1=1411163&r2=1411164&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/FormatableArrayHolder.java
(original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/FormatableArrayHolder.java
Mon Nov 19 13:22:58 2012
@@ -21,13 +21,6 @@
 
 package org.apache.derby.iapi.services.io;
 
-import org.apache.derby.iapi.services.io.ArrayInputStream;
-
-import org.apache.derby.iapi.services.io.StoredFormatIds;
-import org.apache.derby.iapi.services.io.FormatIdUtil;
-import org.apache.derby.iapi.services.io.ArrayUtil;
-import org.apache.derby.iapi.services.io.Formatable;
-
 import org.apache.derby.iapi.services.sanity.SanityManager;
 
 import java.io.ObjectOutput;
@@ -164,13 +157,6 @@ public class FormatableArrayHolder imple
 		array = new Object[ArrayUtil.readArrayLength(in)];
 		ArrayUtil.readArrayItems(in, array);
 	}
-	public void readExternal(ArrayInputStream in)
-		throws IOException, ClassNotFoundException
-	{
-		array = new Formatable[ArrayUtil.readArrayLength(in)];
-		ArrayUtil.readArrayItems(in, array);
-	}
-	
 	
 	/**
 	 * Get the formatID which corresponds to this class.

Modified: db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/FormatableHashtable.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/FormatableHashtable.java?rev=1411164&r1=1411163&r2=1411164&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/FormatableHashtable.java
(original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/FormatableHashtable.java
Mon Nov 19 13:22:58 2012
@@ -21,11 +21,6 @@
 
 package org.apache.derby.iapi.services.io;
 
-import org.apache.derby.iapi.services.io.ArrayInputStream;
-
-import org.apache.derby.iapi.services.io.StoredFormatIds;
-import org.apache.derby.iapi.services.io.FormatIdUtil;
-import org.apache.derby.iapi.services.io.Formatable;
 import org.apache.derby.iapi.services.sanity.SanityManager;
 
 import java.util.Hashtable;
@@ -173,15 +168,6 @@ public class FormatableHashtable extends
 			super.put(in.readObject(), in.readObject());
 		}
 	}
-	public void readExternal(ArrayInputStream in)
-		throws IOException, ClassNotFoundException
-	{
-		int size = in.readInt();
-		for (; size > 0; size--)
-		{
-			super.put(in.readObject(), in.readObject());
-		}
-	}
 	
 	/**
 	 * Get the formatID which corresponds to this class.

Modified: db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/FormatableIntHolder.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/FormatableIntHolder.java?rev=1411164&r1=1411163&r2=1411164&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/FormatableIntHolder.java
(original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/FormatableIntHolder.java
Mon Nov 19 13:22:58 2012
@@ -21,12 +21,6 @@
 
 package org.apache.derby.iapi.services.io;
 
-import org.apache.derby.iapi.services.io.ArrayInputStream;
-
-import org.apache.derby.iapi.services.io.Formatable;
-import org.apache.derby.iapi.services.io.FormatIdUtil;
-import org.apache.derby.iapi.services.io.StoredFormatIds;
-
 import java.io.ObjectOutput;
 import java.io.ObjectInput;
 import java.io.IOException;
@@ -143,11 +137,6 @@ public class FormatableIntHolder impleme
 	{
 		theInt = in.readInt();
 	}
-	public void readExternal(ArrayInputStream in)
-		throws IOException
-	{
-		theInt = in.readInt();
-	}
 	
 	/**
 	 * Get the formatID which corresponds to this class.

Modified: db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/FormatableLongHolder.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/FormatableLongHolder.java?rev=1411164&r1=1411163&r2=1411164&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/FormatableLongHolder.java
(original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/FormatableLongHolder.java
Mon Nov 19 13:22:58 2012
@@ -21,12 +21,6 @@
 
 package org.apache.derby.iapi.services.io;
 
-import org.apache.derby.iapi.services.io.ArrayInputStream;
-
-import org.apache.derby.iapi.services.io.FormatIdUtil;
-import org.apache.derby.iapi.services.io.Formatable;
-import org.apache.derby.iapi.services.io.StoredFormatIds;
-
 import java.io.ObjectOutput;
 import java.io.ObjectInput;
 import java.io.IOException;
@@ -130,11 +124,6 @@ public class FormatableLongHolder implem
 	{
 		theLong = in.readLong();
 	}
-	public void readExternal(ArrayInputStream in)
-		throws IOException
-	{
-		theLong = in.readLong();
-	}
 	
 	/**
 	 * Get the formatID which corresponds to this class.

Modified: db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/FormatableProperties.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/FormatableProperties.java?rev=1411164&r1=1411163&r2=1411164&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/FormatableProperties.java
(original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/FormatableProperties.java
Mon Nov 19 13:22:58 2012
@@ -21,12 +21,6 @@
 
 package org.apache.derby.iapi.services.io;
 
-import org.apache.derby.iapi.services.io.ArrayInputStream;
-
-import org.apache.derby.iapi.services.io.FormatIdUtil;
-import org.apache.derby.iapi.services.io.Formatable;
-import org.apache.derby.iapi.services.io.StoredFormatIds;
-
 import java.util.Enumeration;
 import java.util.Properties;
 
@@ -125,16 +119,6 @@ public class FormatableProperties extend
 		}
 	}
 
-	public void readExternal(ArrayInputStream in)
-		throws IOException
-	{
-		int size = in.readInt();
-		for (; size > 0; size--)
-		{
-			put(in.readUTF(), in.readUTF());
-		}
-	}
-	
 	/**
 	 * Get the formatID which corresponds to this class.
 	 *

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/store/access/btree/index/B2IUndo.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/store/access/btree/index/B2IUndo.java?rev=1411164&r1=1411163&r2=1411164&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/store/access/btree/index/B2IUndo.java
(original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/store/access/btree/index/B2IUndo.java
Mon Nov 19 13:22:58 2012
@@ -23,8 +23,6 @@ package org.apache.derby.impl.store.acce
 
 import org.apache.derby.iapi.reference.SQLState;
 
-import org.apache.derby.iapi.services.io.ArrayInputStream;
-
 import org.apache.derby.iapi.services.sanity.SanityManager;
 
 import org.apache.derby.iapi.services.io.Formatable;
@@ -322,9 +320,4 @@ public class B2IUndo implements LogicalU
 	{
         return;
 	}
-	public void readExternal(ArrayInputStream in)
-		throws IOException, ClassNotFoundException
-	{
-        return;
-	}
 }



Mime
View raw message