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/e4f71010 Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/e4f71010 Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/e4f71010 Branch: refs/heads/trunk Commit: e4f710108918babc76ff9127f87761b28e57ad96 Parents: 6b2ea26 Author: Sylvain Lebresne <[email protected]> Authored: Wed Mar 7 11:27:45 2012 +0100 Committer: Sylvain Lebresne <[email protected]> Committed: Thu Mar 8 09:36:12 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/e4f71010/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 e264b8a..9b89e39 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 )
