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
This commit is contained in:
parent
3fc5791778
commit
f08fde3eeb
|
@ -971,9 +971,6 @@ private byte[] open(DiffEntry.Side side, DiffEntry entry)
|
|||
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 @@ private byte[] open(DiffEntry.Side side, DiffEntry entry)
|
|||
}
|
||||
}
|
||||
|
||||
private boolean isBinary() {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Output the first header line
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue