GetDiff: Remove weblinksOnly option
This option was only used by the GWT UI and is no longer needed. Change-Id: I38516155ab771a2623a8dd39b256b1483d470c34 Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:
committed by
David Pursehouse
parent
0748e80180
commit
d3e51d13c8
@@ -5178,9 +5178,6 @@ parent commit number against which the diff should be generated. This is useful
|
||||
for supporting review of merge commits. The value is the 1-based index of the
|
||||
parent's position in the commit object.
|
||||
|
||||
[[weblinks-only]]
|
||||
If the `weblinks-only` parameter is specified, only the diff web links are returned.
|
||||
|
||||
.Request
|
||||
----
|
||||
GET /changes/myProject~master~I8473b95934b5732ac55d26311a706c9c2bde9940/revisions/b6b9c10649b9041884046119ab794374470a1b45/files/gerrit-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fgoogle%2Fgerrit%2Fserver%2Fproject%2FRefControl.java/diff?base=2 HTTP/1.0
|
||||
|
||||
@@ -108,9 +108,6 @@ public class GetDiff implements RestReadView<FileResource> {
|
||||
@Option(name = "--intraline")
|
||||
boolean intraline;
|
||||
|
||||
@Option(name = "--weblinks-only")
|
||||
boolean webLinksOnly;
|
||||
|
||||
@Inject
|
||||
GetDiff(
|
||||
ProjectCache projectCache,
|
||||
@@ -213,7 +210,6 @@ public class GetDiff implements RestReadView<FileResource> {
|
||||
ps.getNewName());
|
||||
result.webLinks = links.isEmpty() ? null : links;
|
||||
|
||||
if (!webLinksOnly) {
|
||||
if (ps.isBinary()) {
|
||||
result.binary = true;
|
||||
}
|
||||
@@ -258,7 +254,6 @@ public class GetDiff implements RestReadView<FileResource> {
|
||||
result.diffHeader = ps.getPatchHeader();
|
||||
}
|
||||
result.content = content.lines;
|
||||
}
|
||||
|
||||
Response<DiffInfo> r = Response.ok(result);
|
||||
if (resource.isCacheable()) {
|
||||
|
||||
Reference in New Issue
Block a user