GetServerInfo#isNoteDbEnabled: Remove unused Config parameter

Change-Id: I2f002a4579e7f5b26e7ec0b983deddbacdf42cb3
This commit is contained in:
David Pursehouse
2016-06-20 09:57:44 +09:00
parent 95763d6304
commit cd8375071c

View File

@@ -114,7 +114,7 @@ public class GetServerInfo implements RestReadView<ConfigResource> {
getDownloadInfo(downloadSchemes, downloadCommands, cloneCommands,
archiveFormats);
info.gerrit = getGerritInfo(config, allProjectsName, allUsersName);
info.noteDbEnabled = isNoteDbEnabled(config);
info.noteDbEnabled = isNoteDbEnabled();
info.plugin = getPluginInfo();
info.sshd = getSshdInfo(config);
info.suggest = getSuggestInfo(config);
@@ -263,7 +263,7 @@ public class GetServerInfo implements RestReadView<ConfigResource> {
return CharMatcher.is('/').trimTrailingFrom(docUrl) + '/';
}
private boolean isNoteDbEnabled(Config cfg) {
private boolean isNoteDbEnabled() {
return migration.readChanges();
}