You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by ka...@apache.org on 2007/10/11 21:10:50 UTC

svn commit: r583921 - /db/derby/code/trunk/java/client/org/apache/derby/client/am/Clob.java

Author: kahatlen
Date: Thu Oct 11 12:10:49 2007
New Revision: 583921

URL: http://svn.apache.org/viewvc?rev=583921&view=rev
Log:
DERBY-3122: Remove dead code in Clob

Modified:
    db/derby/code/trunk/java/client/org/apache/derby/client/am/Clob.java

Modified: db/derby/code/trunk/java/client/org/apache/derby/client/am/Clob.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/client/org/apache/derby/client/am/Clob.java?rev=583921&r1=583920&r2=583921&view=diff
==============================================================================
--- db/derby/code/trunk/java/client/org/apache/derby/client/am/Clob.java (original)
+++ db/derby/code/trunk/java/client/org/apache/derby/client/am/Clob.java Thu Oct 11 12:10:49 2007
@@ -46,8 +46,6 @@
     // Therefore, we always convert a String to UTF-8 before we flow it for input
     protected byte[] utf8String_;
 
-    private PreparedStatement internalLengthStmt_ = null;
-
     protected String encoding_ = "UNICODE";
     
     //This boolean variable indicates whether the Clob object has
@@ -213,13 +211,6 @@
               willBeLayerBStreamed);
     }
 
-    protected void finalize() throws java.lang.Throwable {
-        super.finalize();
-        if (internalLengthStmt_ != null) {
-            internalLengthStmt_.closeX();
-        }
-    }
-
     // ---------------------------jdbc 2------------------------------------------
     // Create another method lengthX for internal calls
     public long length() throws SQLException {
@@ -857,15 +848,6 @@
             }
             catch(IOException ioe) {
                 throw new SqlException(null, new ClientMessageId(SQLState.IO_ERROR_UPON_LOB_FREE)).getSQLException();
-            }
-        }
-        
-        if (internalLengthStmt_ != null) {
-            try {
-                internalLengthStmt_.closeX();
-            }
-            catch(SqlException sqle) {
-                throw sqle.getSQLException();
             }
         }
     }