diff --git a/java/com/google/gerrit/server/notedb/NotesMigration.java b/java/com/google/gerrit/server/notedb/NotesMigration.java index 5218844b25..8c5e8df43c 100644 --- a/java/com/google/gerrit/server/notedb/NotesMigration.java +++ b/java/com/google/gerrit/server/notedb/NotesMigration.java @@ -14,7 +14,6 @@ package com.google.gerrit.server.notedb; -import com.google.gerrit.server.notedb.NoteDbChangeState.PrimaryStorage; import com.google.inject.Singleton; import java.util.Objects; @@ -46,24 +45,6 @@ public class NotesMigration { return true; } - /** - * Write changes to NoteDb. - * - *

This method is awkwardly named because you should be using either {@link - * #commitChangeWrites()} or {@link #failChangeWrites()} instead. - * - *

Updates to change data are written to NoteDb refs, but ReviewDb is still the source of - * truth. Change data will not be written unless the NoteDb refs are already up to date, and the - * write path will attempt to rebuild the change if not. - * - *

If false, the behavior when attempting to write depends on {@code readChanges()}. If {@code - * readChanges() = false}, writes to NoteDb are simply ignored; if {@code true}, any attempts to - * write will generate an error. - */ - public final boolean rawWriteChangesSetting() { - return true; - } - /** * Read sequential change ID numbers from NoteDb. * @@ -74,11 +55,6 @@ public class NotesMigration { return true; } - /** @return default primary storage for new changes. */ - public final PrimaryStorage changePrimaryStorage() { - return PrimaryStorage.NOTE_DB; - } - /** * Disable ReviewDb access for changes. *