Return-Path: X-Original-To: apmail-db-derby-commits-archive@www.apache.org Delivered-To: apmail-db-derby-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 06C35D5F4 for ; Mon, 2 Jul 2012 04:33:04 +0000 (UTC) Received: (qmail 29394 invoked by uid 500); 2 Jul 2012 04:33:04 -0000 Delivered-To: apmail-db-derby-commits-archive@db.apache.org Received: (qmail 29340 invoked by uid 500); 2 Jul 2012 04:33:03 -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 29322 invoked by uid 99); 2 Jul 2012 04:33:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jul 2012 04:33:02 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.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, 02 Jul 2012 04:33:00 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 2C3AB2388847; Mon, 2 Jul 2012 04:32:39 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1356066 - /db/derby/code/trunk/java/client/org/apache/derby/client/net/NetCallableStatement.java Date: Mon, 02 Jul 2012 04:32:38 -0000 To: derby-commits@db.apache.org From: bpendleton@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120702043239.2C3AB2388847@eris.apache.org> Author: bpendleton Date: Mon Jul 2 04:32:38 2012 New Revision: 1356066 URL: http://svn.apache.org/viewvc?rev=1356066&view=rev Log: DERBY-5833: Remove unused methods in NetCallableStatement class This patch was contributed by Mohamed Nufail (nufail56 at gmail dot com) This change removes the following unused methods from the NetCallableStatement class: - resetNetCallableStatement(NetAgent netAgent, NetConnection netConnection, String sql, Section section) - resetNetCallableStatement(NetAgent netAgent, NetConnection netConnection, String sql, Section section, ColumnMetaData parameterMetaData, ColumnMetaData resultSetMetaData) I suspect that, of the two remaining overloads of the resetNetCallableStatement method, the 3-argument variant could be made private, as it is called only by the 6-argument variant. That might be a further improvement we could do at some future time. For now, this change simply removes the two variants that are wholly unused. Modified: db/derby/code/trunk/java/client/org/apache/derby/client/net/NetCallableStatement.java Modified: db/derby/code/trunk/java/client/org/apache/derby/client/net/NetCallableStatement.java URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/client/org/apache/derby/client/net/NetCallableStatement.java?rev=1356066&r1=1356065&r2=1356066&view=diff ============================================================================== --- db/derby/code/trunk/java/client/org/apache/derby/client/net/NetCallableStatement.java (original) +++ db/derby/code/trunk/java/client/org/apache/derby/client/net/NetCallableStatement.java Mon Jul 2 04:32:38 2012 @@ -91,22 +91,5 @@ public class NetCallableStatement extend resetNetCallableStatement(callableStatement_, netAgent, netConnection); } - void resetNetCallableStatement(NetAgent netAgent, - NetConnection netConnection, - String sql, - Section section) throws SqlException { - callableStatement_.resetCallableStatement(netAgent, netConnection, sql, section); - resetNetCallableStatement(callableStatement_, netAgent, netConnection); - } - - void resetNetCallableStatement(NetAgent netAgent, - NetConnection netConnection, - String sql, - Section section, - ColumnMetaData parameterMetaData, - ColumnMetaData resultSetMetaData) throws SqlException { - callableStatement_.resetCallableStatement(netAgent, netConnection, sql, section, parameterMetaData, resultSetMetaData); - resetNetCallableStatement(callableStatement_, netAgent, netConnection); - } }