Remove dead (and buggy: removes only half the files) code
Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/e8b44426 Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/e8b44426 Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/e8b44426 Branch: refs/heads/cassandra-1.1 Commit: e8b444269ffea05d7077deb54ccff55bb4ceae33 Parents: edb105d Author: Sylvain Lebresne <sylv...@datastax.com> Authored: Wed Mar 7 11:27:45 2012 +0100 Committer: Sylvain Lebresne <sylv...@datastax.com> Committed: Wed Mar 7 11:27:45 2012 +0100 ---------------------------------------------------------------------- .../org/apache/cassandra/io/util/FileUtils.java | 17 --------------- 1 files changed, 0 insertions(+), 17 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cassandra/blob/e8b44426/src/java/org/apache/cassandra/io/util/FileUtils.java ---------------------------------------------------------------------- diff --git a/src/java/org/apache/cassandra/io/util/FileUtils.java b/src/java/org/apache/cassandra/io/util/FileUtils.java index ff8544f..2fd09cc 100644 --- a/src/java/org/apache/cassandra/io/util/FileUtils.java +++ b/src/java/org/apache/cassandra/io/util/FileUtils.java @@ -148,23 +148,6 @@ public class FileUtils return f.delete(); } - public static boolean delete(List<String> files) - { - boolean bVal = true; - for ( int i = 0; i < files.size(); ++i ) - { - String file = files.get(i); - bVal = delete(file); - if (bVal) - { - if (logger_.isDebugEnabled()) - logger_.debug("Deleted file {}", file); - files.remove(i); - } - } - return bVal; - } - public static void delete(File[] files) { for ( File file : files )