Remove superfluous/misleading methods from ChangeEdit
Some of the methods of ChangeEdit were superfluous or misleading. For this reason, code calling one of those methods is adjusted to work without them. Change-Id: I7a2e094bb6eaf5a5ae98e24f03cd615a3c7d0fff
This commit is contained in:
@@ -48,9 +48,14 @@ public class FileInfoJson {
|
||||
|
||||
Map<String, FileInfo> toFileInfoMap(Change change, RevId revision, @Nullable PatchSet base)
|
||||
throws PatchListNotAvailableException {
|
||||
ObjectId objectId = ObjectId.fromString(revision.get());
|
||||
return toFileInfoMap(change, objectId, base);
|
||||
}
|
||||
|
||||
Map<String, FileInfo> toFileInfoMap(Change change, ObjectId objectId, @Nullable PatchSet base)
|
||||
throws PatchListNotAvailableException {
|
||||
ObjectId a = (base == null) ? null : ObjectId.fromString(base.getRevision().get());
|
||||
ObjectId b = ObjectId.fromString(revision.get());
|
||||
return toFileInfoMap(change, new PatchListKey(a, b, Whitespace.IGNORE_NONE));
|
||||
return toFileInfoMap(change, new PatchListKey(a, objectId, Whitespace.IGNORE_NONE));
|
||||
}
|
||||
|
||||
Map<String, FileInfo> toFileInfoMap(Change change, RevId revision, int parent)
|
||||
|
Reference in New Issue
Block a user