Remove cached change status from PatchSetApproval
With the SQL search system removed, the caching of change status in these objects is no longer necessary or even used. Change-Id: I49798f477c10e49d17c1ba1a7e438fbf6c16c392
This commit is contained in:
@@ -14,7 +14,6 @@
|
||||
|
||||
package com.google.gerrit.server.change;
|
||||
|
||||
import com.google.common.base.Objects;
|
||||
import com.google.common.collect.ImmutableList;
|
||||
import com.google.common.collect.ImmutableSet;
|
||||
import com.google.common.collect.Iterables;
|
||||
@@ -302,10 +301,8 @@ public class PostReviewers implements RestModifyView<ChangeResource, AddReviewer
|
||||
PatchSet.Id patchSetId, Account.Id reviewerId) {
|
||||
LabelId id =
|
||||
Iterables.getLast(ctl.getLabelTypes().getLabelTypes()).getLabelId();
|
||||
PatchSetApproval dummyApproval = new PatchSetApproval(
|
||||
return new PatchSetApproval(
|
||||
new PatchSetApproval.Key(patchSetId, reviewerId, id), (short) 0,
|
||||
TimeUtil.nowTs());
|
||||
dummyApproval.cache(ctl.getChange());
|
||||
return dummyApproval;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user