git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[JGIT PATCH] Drop obsolete MyIndexTreeVisitor from test code

From
Robin Rosenberg <robin.rosenberg.lists@dewire.com>
Date
Aug 22, 2008, 20:51 UTC
Message-ID
<200808222251.50869.robin.rosenberg.lists@dewire.com>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
---
 .../org/spearce/jgit/lib/IndexTreeWalkerTest.java  |   13 -------------
 1 files changed, 0 insertions(+), 13 deletions(-)
diff --git a/org.spearce.jgit.test/tst/org/spearce/jgit/lib/IndexTreeWalkerTest.java b/org.spearce.jgit.test/tst/org/spearce/jgit/lib/IndexTreeWalkerTest.java
index d0c6581..c7c283e 100644
--- a/org.spearce.jgit.test/tst/org/spearce/jgit/lib/IndexTreeWalkerTest.java
+++ b/org.spearce.jgit.test/tst/org/spearce/jgit/lib/IndexTreeWalkerTest.java
@@ -120,19 +120,6 @@ public void testIndexOnlySubDirs() throws IOException {
 		assertEquals("foo/bar/baz", indexOnlyEntriesVisited.get(1));
 	}
 	
-	public class MyIndexTreeVisitor extends AbstractIndexTreeVisitor {
-		public ArrayList<String> visits = new ArrayList<String>();
-		public void visitEntry(TreeEntry treeEntry, TreeEntry auxEntry,
-				Entry indexEntry, File file) throws IOException {
-			visits.add(file.getPath());
-		}
-	
-		public void visitEntry(TreeEntry treeEntry, Entry indexEntry, File file)
-				throws IOException {
-			visits.add(file.getPath());
-		}
-	}
-	
 	public void testLeavingTree() throws IOException {
 		GitIndex index = new GitIndex(db);
 		index.add(trash, writeTrashFile("foo/bar", "foo/bar"));
-- 
1.6.0.rc2.35.g04c6e9
Message 1 of 1 in “Drop obsolete MyIndexTreeVisitor from test code”
  1. Drop obsolete MyIndexTreeVisitor from test codeRobin Rosenberg, Aug 22, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.