cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r1137766 - /cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/io/util/FileUtils.java
Date Mon, 20 Jun 2011 20:25:51 GMT
Author: jbellis
Date: Mon Jun 20 20:25:50 2011
New Revision: 1137766

URL: http://svn.apache.org/viewvc?rev=1137766&view=rev
Log:
r/m unused code

Modified:
    cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/io/util/FileUtils.java

Modified: cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/io/util/FileUtils.java
URL: http://svn.apache.org/viewvc/cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/io/util/FileUtils.java?rev=1137766&r1=1137765&r2=1137766&view=diff
==============================================================================
--- cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/io/util/FileUtils.java
(original)
+++ cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/io/util/FileUtils.java
Mon Jun 20 20:25:50 2011
@@ -136,26 +136,13 @@ public class FileUtils
         }
     }
 
-    public static void createFile(String directory) throws IOException
-    {
-        File file = new File(directory);
-        if ( !file.exists() )
-            file.createNewFile();
-    }
-
-    public static boolean isExists(String filename) throws IOException
-    {
-        File file = new File(filename);
-        return file.exists();
-    }
-
     public static boolean delete(String file)
     {
         File f = new File(file);
         return f.delete();
     }
 
-    public static boolean delete(List<String> files) throws IOException
+    public static boolean delete(List<String> files)
     {
         boolean bVal = true;
         for ( int i = 0; i < files.size(); ++i )
@@ -172,7 +159,7 @@ public class FileUtils
         return bVal;
     }
 
-    public static void delete(File[] files) throws IOException
+    public static void delete(File[] files)
     {
         for ( File file : files )
         {



Mime
View raw message