Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-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 79E4A1141B for ; Thu, 15 May 2014 06:20:00 +0000 (UTC) Received: (qmail 70525 invoked by uid 500); 14 May 2014 23:26:49 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 70500 invoked by uid 500); 14 May 2014 23:26:49 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 70483 invoked by uid 99); 14 May 2014 23:26:49 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 May 2014 23:26:49 +0000 Date: Wed, 14 May 2014 23:26:44 +0000 (UTC) From: "Jonathan Ellis (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-7197) Dead code in trunk MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-7197?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jonathan Ellis updated CASSANDRA-7197: -------------------------------------- Reviewer: Dave Brosius Assignee: Daniel Shelepov [~dbrosius] to review > Dead code in trunk > ------------------ > > Key: CASSANDRA-7197 > URL: https://issues.apache.org/jira/browse/CASSANDRA-7197 > Project: Cassandra > Issue Type: Bug > Components: Core > Reporter: Daniel Shelepov > Assignee: Daniel Shelepov > Priority: Minor > Labels: sourcecode > Attachments: trunk-7197.txt > > Original Estimate: 1h > Remaining Estimate: 1h > > I did some code analysis, and as a byproduct was able to identify some dead code in the form of files that can be safely removed. After filtering out some false positives, this is what remained: > gms/IFailureNotification.java > - was there since FB open-sourced Cassandra; has never been used for anything. No classes implement the interface, and it's not mentioned anywhere in the codebase. > service/PendingRangeCalculatorServiceMBean.java > - empty MBean used as a base class for PendingRangeCalculatorService, but has not been touched since being introduced several months ago. NOTE: removing this will require editing PendingRangeCalculatorService to not derive from this anymore. > db/ColumnFamilyNotDefinedException.java > - used to be thrown in original FB Cassandra; no longer used anywhere. > db/context/IContext.java > - introduced in 2c4ac98c9ffa8ea52da801830c7cdb745ddc28f0 (CASSANDRA-1072); was used extensively then, but no longer used anywhere. > db/columniterator/SimpleAbstractColumnIterator.java > - introduced in 48093358fb9022947592813a6aae43db148847ca (CASSANDRA-287); was used then; no longer used anywhere. > thrift/RequestType.java > - enum introduced in 72199e23ec9d604449bef87733a32e1da9924437 (CASSANDRA-3272); was used then; no longer used anywhere. > utils/AtomicLongArrayUpdater.java > - introduced in 22e18f5a348a911f89deed9f9984950de451d28a (CASSANDRA-3578), but has never been used for anything. Not sure what the original intent might have been. > utils/DefaultDouble.java > - introduced in 96588d4f322dfbb1f5ff9328afe4377babfb1d2c (CASSANDRA-1715); was used then; no longer used anywhere. > utils/LatencyTracker.java > - introduced in 979a022f896aaa5a799b27a973cd476e5727820e (CASSANDRA-702); was used then; no longer used anywhere. > utils/SkipNullRepresenter.java > - introduced in a6777492280ae481392cd4cb4ba613923f84989d(CASSANDRA-1133) was used then; no longer used anywhere. -- This message was sent by Atlassian JIRA (v6.2#6252)