jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r1305832 - /jackrabbit/oak/trunk/oak-mk/src/test/java/org/apache/jackrabbit/mk/store/CopyingGCTest.java
Date Tue, 27 Mar 2012 13:25:02 GMT
Author: stefan
Date: Tue Mar 27 13:25:02 2012
New Revision: 1305832

URL: http://svn.apache.org/viewvc?rev=1305832&view=rev
Log:
remove unneeded code

Modified:
    jackrabbit/oak/trunk/oak-mk/src/test/java/org/apache/jackrabbit/mk/store/CopyingGCTest.java

Modified: jackrabbit/oak/trunk/oak-mk/src/test/java/org/apache/jackrabbit/mk/store/CopyingGCTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-mk/src/test/java/org/apache/jackrabbit/mk/store/CopyingGCTest.java?rev=1305832&r1=1305831&r2=1305832&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-mk/src/test/java/org/apache/jackrabbit/mk/store/CopyingGCTest.java
(original)
+++ jackrabbit/oak/trunk/oak-mk/src/test/java/org/apache/jackrabbit/mk/store/CopyingGCTest.java
Tue Mar 27 13:25:02 2012
@@ -49,8 +49,6 @@ public class CopyingGCTest {
     
     @Before
     public void setup() throws Exception {
-        delete(new File("target/mk1"));
-        delete(new File("target/mk2"));
     }
 
     @After
@@ -136,16 +134,4 @@ public class CopyingGCTest {
         // Assert MK contains 3 revisions only
         assertEquals(3, ((JsopArray) Jsop.parse(mk.getRevisions(0, Integer.MAX_VALUE))).size());
     }
-    
-    private static void delete(File f) throws IOException {
-        if (f.exists()) {
-            if (f.isDirectory()) {
-                // recursively delete children first
-                for (File child : f.listFiles()) {
-                    delete(child);
-                }
-            }
-            f.delete();
-        }
-    }
 }



Mime
View raw message