Remove NoteDbChangeState

This was used for coordinating the state of migrating a single change to
NoteDb, so is no longer required.

Change-Id: Ie5c313140d810ded904d34273d6118fba2866516
This commit is contained in:
Dave Borowitz
2018-12-13 14:46:03 -08:00
parent fb2b323083
commit 2839aa67b1
6 changed files with 8 additions and 733 deletions

View File

@@ -109,7 +109,6 @@ public class ChangeNotes extends AbstractChangeNotes<ChangeNotes> {
public ChangeNotes createChecked(Project.NameKey project, Change.Id changeId)
throws OrmException {
// Prepopulate the change exists with proper noteDbState field.
Change change = newChange(project, changeId);
return new ChangeNotes(args, change, true, null).load();
}
@@ -128,11 +127,8 @@ public class ChangeNotes extends AbstractChangeNotes<ChangeNotes> {
}
public static Change newChange(Project.NameKey project, Change.Id changeId) {
Change change =
new Change(
null, changeId, null, new Branch.NameKey(project, "INVALID_NOTE_DB_ONLY"), null);
change.setNoteDbState(NoteDbChangeState.NOTE_DB_PRIMARY_STATE);
return change;
return new Change(
null, changeId, null, new Branch.NameKey(project, "INVALID_NOTE_DB_ONLY"), null);
}
public ChangeNotes create(Project.NameKey project, Change.Id changeId) throws OrmException {