WebLinks: Remove unused method

Change-Id: I6a161be2d1d862a2e2ea95afa6ceeb7c065c7a29
This commit is contained in:
David Pursehouse
2016-12-07 10:05:23 +09:00
parent f9937b173b
commit 9b8be04d27
2 changed files with 2 additions and 9 deletions

View File

@@ -217,7 +217,7 @@ class ProjectAccessFactory extends Handler<ProjectAccess> {
private List<WebLinkInfoCommon> getConfigFileLogLinks(String projectName) { private List<WebLinkInfoCommon> getConfigFileLogLinks(String projectName) {
FluentIterable<WebLinkInfoCommon> links = FluentIterable<WebLinkInfoCommon> links =
webLinks.getFileHistoryLinksCommon(projectName, RefNames.REFS_CONFIG, webLinks.getFileHistoryLinks(projectName, RefNames.REFS_CONFIG,
ProjectConfig.PROJECT_CONFIG); ProjectConfig.PROJECT_CONFIG);
return links.isEmpty() ? null : links.toList(); return links.isEmpty() ? null : links.toList();
} }

View File

@@ -122,14 +122,7 @@ public class WebLinks {
* @param file File name. * @param file File name.
* @return Links for file history * @return Links for file history
*/ */
public FluentIterable<WebLinkInfo> getFileHistoryLinks(String project, public FluentIterable<WebLinkInfoCommon> getFileHistoryLinks(
String revision, String file) {
return filterLinks(
fileHistoryLinks,
webLink -> webLink.getFileHistoryWebLink(project, revision, file));
}
public FluentIterable<WebLinkInfoCommon> getFileHistoryLinksCommon(
String project, String revision, String file) { String project, String revision, String file) {
return FluentIterable return FluentIterable
.from(fileHistoryLinks) .from(fileHistoryLinks)