Merge "Remove unused public method."
This commit is contained in:
@@ -15,13 +15,12 @@
|
||||
package com.google.gerrit.server.permissions;
|
||||
|
||||
import com.google.gerrit.common.Nullable;
|
||||
import com.google.gerrit.server.account.GroupBackend;
|
||||
|
||||
/**
|
||||
* Thrown when {@link PermissionBackend} cannot compute the result.
|
||||
*
|
||||
* <p>This is typically a transient failure, such as a required {@link GroupBackend} not responding
|
||||
* to membership requests.
|
||||
* <p>This is typically a transient failure, such as a required group backend not responding to
|
||||
* membership requests.
|
||||
*/
|
||||
public class PermissionBackendException extends Exception {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@@ -19,7 +19,6 @@ import static com.google.common.base.Preconditions.checkArgument;
|
||||
import com.google.auto.value.AutoValue;
|
||||
import com.google.common.base.Strings;
|
||||
import com.google.gerrit.common.data.LabelType;
|
||||
import com.google.gerrit.reviewdb.client.PatchSetApproval;
|
||||
|
||||
/** A single vote on a label, consisting of a label name and a value. */
|
||||
@AutoValue
|
||||
@@ -69,10 +68,6 @@ public abstract class LabelVote {
|
||||
return new AutoValue_LabelVote(LabelType.checkNameInternal(label), value);
|
||||
}
|
||||
|
||||
public static LabelVote create(PatchSetApproval psa) {
|
||||
return create(psa.getLabel(), psa.getValue());
|
||||
}
|
||||
|
||||
public abstract String label();
|
||||
|
||||
public abstract short value();
|
||||
|
||||
Reference in New Issue
Block a user