Remove unused TreeWalk in PatchListLoader
Change-Id: I6ad54e54fceb2d80fb4be70ea31cddf942f6aefd Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
parent
6aecd8efde
commit
eb85036e0a
@ -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<PatchListKey, PatchList> {
|
||||
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user