Remove UpdateUI#pruneSchema method
Change-Id: Ibb5d3e74463bd72279bff6f0b104e97f1cc80194
This commit is contained in:
@@ -45,7 +45,6 @@ import com.google.gerrit.server.securestore.SecureStore;
|
||||
import com.google.gerrit.server.securestore.SecureStoreClassName;
|
||||
import com.google.gerrit.server.securestore.SecureStoreProvider;
|
||||
import com.google.gwtorm.server.OrmException;
|
||||
import com.google.gwtorm.server.StatementExecutor;
|
||||
import com.google.inject.AbstractModule;
|
||||
import com.google.inject.CreationException;
|
||||
import com.google.inject.Guice;
|
||||
@@ -388,12 +387,6 @@ public class BaseInit extends SiteProgram {
|
||||
public boolean isBatch() {
|
||||
return consoleUi.isBatch();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void pruneSchema(StatementExecutor e, List<String> prune) {
|
||||
// Do nothing in NoteDb.
|
||||
// TODO(dborowitz): Remove this method in the base class.
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,9 +14,6 @@
|
||||
|
||||
package com.google.gerrit.server.schema;
|
||||
|
||||
import com.google.gwtorm.server.OrmException;
|
||||
import com.google.gwtorm.server.StatementExecutor;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
public interface UpdateUI {
|
||||
@@ -37,6 +34,4 @@ public interface UpdateUI {
|
||||
String readString(String defaultValue, Set<String> allowedValues, String message);
|
||||
|
||||
boolean isBatch();
|
||||
|
||||
void pruneSchema(StatementExecutor e, List<String> pruneList) throws OrmException;
|
||||
}
|
||||
|
||||
@@ -15,9 +15,6 @@
|
||||
package com.google.gerrit.testing;
|
||||
|
||||
import com.google.gerrit.server.schema.UpdateUI;
|
||||
import com.google.gwtorm.server.OrmException;
|
||||
import com.google.gwtorm.server.StatementExecutor;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
public class TestUpdateUI implements UpdateUI {
|
||||
@@ -41,11 +38,4 @@ public class TestUpdateUI implements UpdateUI {
|
||||
public boolean isBatch() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void pruneSchema(StatementExecutor e, List<String> pruneList) throws OrmException {
|
||||
for (String sql : pruneList) {
|
||||
e.execute(sql);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user