PatchFile: Remove unused getLineCount method

The last caller of this method was removed in change I9942eb1a9.

Change-Id: I01caf650f5dd458fcd5ffab77fd10cb07079f779
This commit is contained in:
David Pursehouse
2019-07-06 00:02:39 +09:00
parent bd049d9dc5
commit 8827498933

View File

@@ -123,33 +123,6 @@ public class PatchFile {
}
}
/**
* Return number of lines in file.
*
* @param file the file index to extract.
* @return number of lines in file.
* @throws IOException the patch or complete file content cannot be read.
* @throws NoSuchEntityException the file is not exist.
*/
public int getLineCount(int file) throws IOException, NoSuchEntityException {
switch (file) {
case 0:
if (a == null) {
a = load(aTree, getOldName());
}
return a.size();
case 1:
if (b == null) {
b = load(bTree, entry.getNewName());
}
return b.size();
default:
throw new NoSuchEntityException();
}
}
private Text load(ObjectId tree, String path)
throws MissingObjectException, IncorrectObjectTypeException, CorruptObjectException,
IOException {