From eb85036e0a2889ebd5c104ee65422cc0e196efdf Mon Sep 17 00:00:00 2001 From: Edwin Kempin Date: Fri, 16 May 2014 10:56:38 +0200 Subject: [PATCH] Remove unused TreeWalk in PatchListLoader Change-Id: I6ad54e54fceb2d80fb4be70ea31cddf942f6aefd Signed-off-by: Edwin Kempin --- .../com/google/gerrit/server/patch/PatchListLoader.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/gerrit-server/src/main/java/com/google/gerrit/server/patch/PatchListLoader.java b/gerrit-server/src/main/java/com/google/gerrit/server/patch/PatchListLoader.java index 2cda3346ca..8a73503ae0 100644 --- a/gerrit-server/src/main/java/com/google/gerrit/server/patch/PatchListLoader.java +++ b/gerrit-server/src/main/java/com/google/gerrit/server/patch/PatchListLoader.java @@ -51,8 +51,6 @@ import org.eclipse.jgit.revwalk.RevCommit; import org.eclipse.jgit.revwalk.RevObject; import org.eclipse.jgit.revwalk.RevTree; import org.eclipse.jgit.revwalk.RevWalk; -import org.eclipse.jgit.treewalk.TreeWalk; -import org.eclipse.jgit.treewalk.filter.TreeFilter; import org.eclipse.jgit.util.TemporaryBuffer; import org.eclipse.jgit.util.io.DisabledOutputStream; import org.slf4j.Logger; @@ -137,13 +135,6 @@ public class PatchListLoader extends CacheLoader { RevTree bTree = b.getTree(); - final TreeWalk walk = new TreeWalk(reader); - walk.reset(); - walk.setRecursive(true); - walk.addTree(aTree); - walk.addTree(bTree); - walk.setFilter(TreeFilter.ANY_DIFF); - DiffFormatter df = new DiffFormatter(DisabledOutputStream.INSTANCE); df.setRepository(repo); df.setDiffComparator(cmp);