Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShawn Pearce2014-02-14 17:48:50 +0000
committerMatthias Sohn2014-02-17 21:15:55 +0000
commitf08fde3eebc2689210292d78db785f6ec52dc8ef (patch)
tree23cfaeda52d656ed6a08893bf08674061ef66d5e
parent3fc5791778bbd1d33da34698d0054619f4cad56c (diff)
downloadjgit-f08fde3eebc2689210292d78db785f6ec52dc8ef.tar.gz
jgit-f08fde3eebc2689210292d78db785f6ec52dc8ef.tar.xz
jgit-f08fde3eebc2689210292d78db785f6ec52dc8ef.zip
Remove dead isBinary method from DiffFormatter
This method always returns false and is private so it cannot be overridden at runtime by a subclass. Drop the method and the branch that can never be taken. Change-Id: I4d3edbf469c6739dca191e62ea580bdb534b67a4
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffFormatter.java7
1 files changed, 0 insertions, 7 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffFormatter.java b/org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffFormatter.java
index 9e26c3747f..4cd9319127 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffFormatter.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffFormatter.java
@@ -971,9 +971,6 @@ public class DiffFormatter {
if (entry.getMode(side).getObjectType() != Constants.OBJ_BLOB)
return EMPTY;
- if (isBinary())
- return BINARY;
-
AbbreviatedObjectId id = entry.getId(side);
if (!id.isComplete()) {
Collection<ObjectId> ids = reader.resolve(id);
@@ -1012,10 +1009,6 @@ public class DiffFormatter {
}
}
- private boolean isBinary() {
- return false;
- }
-
/**
* Output the first header line
*

Back to the top