Return-Path: Delivered-To: apmail-db-derby-commits-archive@www.apache.org Received: (qmail 40527 invoked from network); 14 Jul 2008 10:31:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Jul 2008 10:31:32 -0000 Received: (qmail 11041 invoked by uid 500); 14 Jul 2008 10:31:32 -0000 Delivered-To: apmail-db-derby-commits-archive@db.apache.org Received: (qmail 11011 invoked by uid 500); 14 Jul 2008 10:31:32 -0000 Mailing-List: contact derby-commits-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Derby Development" List-Id: Delivered-To: mailing list derby-commits@db.apache.org Received: (qmail 11002 invoked by uid 99); 14 Jul 2008 10:31:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Jul 2008 03:31:32 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Jul 2008 10:30:47 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 6AA152388A06; Mon, 14 Jul 2008 03:30:41 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r676544 - /db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/LOBStreamControl.java Date: Mon, 14 Jul 2008 10:30:41 -0000 To: derby-commits@db.apache.org From: kristwaa@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080714103041.6AA152388A06@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: kristwaa Date: Mon Jul 14 03:30:40 2008 New Revision: 676544 URL: http://svn.apache.org/viewvc?rev=676544&view=rev Log: Removed unused local variable and unused imports. Patch file: n/a Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/LOBStreamControl.java Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/LOBStreamControl.java URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/LOBStreamControl.java?rev=676544&r1=676543&r2=676544&view=diff ============================================================================== --- db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/LOBStreamControl.java (original) +++ db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/LOBStreamControl.java Mon Jul 14 03:30:40 2008 @@ -23,14 +23,10 @@ package org.apache.derby.impl.jdbc; import java.io.EOFException; -import java.io.File; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; -import java.io.RandomAccessFile; -import java.security.AccessControlException; import java.security.AccessController; -import java.security.PrivilegedAction; import java.security.PrivilegedActionException; import java.security.PrivilegedExceptionAction; import java.sql.SQLException; @@ -40,7 +36,6 @@ import org.apache.derby.iapi.services.monitor.Monitor; import org.apache.derby.iapi.store.raw.data.DataFactory; import org.apache.derby.io.StorageFile; -import org.apache.derby.io.StorageRandomAccessFile; import org.apache.derby.shared.common.error.ExceptionUtil; /** @@ -287,7 +282,6 @@ return -1; int lengthFromPos = dataBytes.length - (int) pos; int actualLength = len > lengthFromPos ? lengthFromPos : len; - byte [] result = new byte[actualLength]; System.arraycopy(dataBytes, (int) pos, b, off, actualLength); return actualLength; }