cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From slebre...@apache.org
Subject [17/17] git commit: Remove dead (and buggy: removes only half the files) code
Date Tue, 13 Mar 2012 13:16:58 GMT
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/trunk
Commit: e8b444269ffea05d7077deb54ccff55bb4ceae33
Parents: edb105d
Author: Sylvain Lebresne <sylvain@datastax.com>
Authored: Wed Mar 7 11:27:45 2012 +0100
Committer: Sylvain Lebresne <sylvain@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 )


Mime
View raw message