ChangeUtil: Remove unused touch method

Change-Id: I9850d80bacc2c9a90e5f70aeb723c3ef336161d1
This commit is contained in:
Dave Borowitz
2016-01-15 10:05:05 -05:00
parent 532a2e5ba0
commit feda0ff046

View File

@@ -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.