Browse Source

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
tags/v3.3.0.201402191814-rc1
Shawn Pearce 10 years ago
parent
commit
f08fde3eeb
1 changed files with 0 additions and 7 deletions
  1. 0
    7
      org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffFormatter.java

+ 0
- 7
org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffFormatter.java View File

if (entry.getMode(side).getObjectType() != Constants.OBJ_BLOB) if (entry.getMode(side).getObjectType() != Constants.OBJ_BLOB)
return EMPTY; return EMPTY;


if (isBinary())
return BINARY;

AbbreviatedObjectId id = entry.getId(side); AbbreviatedObjectId id = entry.getId(side);
if (!id.isComplete()) { if (!id.isComplete()) {
Collection<ObjectId> ids = reader.resolve(id); Collection<ObjectId> ids = reader.resolve(id);
} }
} }


private boolean isBinary() {
return false;
}

/** /**
* Output the first header line * Output the first header line
* *

Loading…
Cancel
Save