ChangeUtil: Remove unused touch method
Change-Id: I9850d80bacc2c9a90e5f70aeb723c3ef336161d1
This commit is contained in:
@@ -43,7 +43,6 @@ import com.google.gerrit.server.project.RefControl;
|
||||
import com.google.gerrit.server.query.change.ChangeData;
|
||||
import com.google.gerrit.server.query.change.InternalChangeQuery;
|
||||
import com.google.gerrit.server.util.IdGenerator;
|
||||
import com.google.gwtorm.server.OrmConcurrencyException;
|
||||
import com.google.gwtorm.server.OrmException;
|
||||
import com.google.inject.Inject;
|
||||
import com.google.inject.Provider;
|
||||
@@ -121,16 +120,6 @@ public class ChangeUtil {
|
||||
return u + '_' + l;
|
||||
}
|
||||
|
||||
public static void touch(Change change, ReviewDb db)
|
||||
throws OrmException {
|
||||
try {
|
||||
updated(change);
|
||||
db.changes().update(Collections.singleton(change));
|
||||
} catch (OrmConcurrencyException e) {
|
||||
// Ignore a concurrent update, we just wanted to tag it as newer.
|
||||
}
|
||||
}
|
||||
|
||||
public static void bumpRowVersionNotLastUpdatedOn(Change.Id id, ReviewDb db)
|
||||
throws OrmException {
|
||||
// Empty update of Change to bump rowVersion, changing its ETag.
|
||||
|
||||
Reference in New Issue
Block a user