Return-Path: Delivered-To: apmail-incubator-cassandra-commits-archive@minotaur.apache.org Received: (qmail 36063 invoked from network); 28 Dec 2009 15:44:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Dec 2009 15:44:13 -0000 Received: (qmail 75576 invoked by uid 500); 28 Dec 2009 15:44:13 -0000 Delivered-To: apmail-incubator-cassandra-commits-archive@incubator.apache.org Received: (qmail 75520 invoked by uid 500); 28 Dec 2009 15:44:13 -0000 Mailing-List: contact cassandra-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cassandra-dev@incubator.apache.org Delivered-To: mailing list cassandra-commits@incubator.apache.org Received: (qmail 75510 invoked by uid 99); 28 Dec 2009 15:44:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Dec 2009 15:44:13 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 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, 28 Dec 2009 15:44:06 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 90C4D23889EC; Mon, 28 Dec 2009 15:43:46 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r894190 - /incubator/cassandra/trunk/src/java/org/apache/cassandra/io/SSTableReader.java Date: Mon, 28 Dec 2009 15:43:44 -0000 To: cassandra-commits@incubator.apache.org From: jbellis@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20091228154346.90C4D23889EC@eris.apache.org> Author: jbellis Date: Mon Dec 28 15:43:41 2009 New Revision: 894190 URL: http://svn.apache.org/viewvc?rev=894190&view=rev Log: r/m unused method parameter. patch by jbellis Modified: incubator/cassandra/trunk/src/java/org/apache/cassandra/io/SSTableReader.java Modified: incubator/cassandra/trunk/src/java/org/apache/cassandra/io/SSTableReader.java URL: http://svn.apache.org/viewvc/incubator/cassandra/trunk/src/java/org/apache/cassandra/io/SSTableReader.java?rev=894190&r1=894189&r2=894190&view=diff ============================================================================== --- incubator/cassandra/trunk/src/java/org/apache/cassandra/io/SSTableReader.java (original) +++ incubator/cassandra/trunk/src/java/org/apache/cassandra/io/SSTableReader.java Mon Dec 28 15:43:41 2009 @@ -252,7 +252,7 @@ } /** get the position in the index file to start scanning to find the given key (at most indexInterval keys away) */ - private long getIndexScanPosition(DecoratedKey decoratedKey, IPartitioner partitioner) + private long getIndexScanPosition(DecoratedKey decoratedKey) { assert indexPositions != null && indexPositions.size() > 0; int index = Collections.binarySearch(indexPositions, new KeyPosition(decoratedKey, -1)); @@ -286,7 +286,7 @@ return cachedPosition; } } - long start = getIndexScanPosition(decoratedKey, partitioner); + long start = getIndexScanPosition(decoratedKey); if (start < 0) { return -1; @@ -331,7 +331,7 @@ /** like getPosition, but if key is not found will return the location of the first key _greater_ than the desired one, or -1 if no such key exists. */ public long getNearestPosition(DecoratedKey decoratedKey) throws IOException { - long start = getIndexScanPosition(decoratedKey, partitioner); + long start = getIndexScanPosition(decoratedKey); if (start < 0) { return 0;