diff --git a/java/com/google/gerrit/server/restapi/change/ReviewerRecommender.java b/java/com/google/gerrit/server/restapi/change/ReviewerRecommender.java index 980ca28e59..76c152954e 100644 --- a/java/com/google/gerrit/server/restapi/change/ReviewerRecommender.java +++ b/java/com/google/gerrit/server/restapi/change/ReviewerRecommender.java @@ -64,13 +64,6 @@ import org.eclipse.jgit.lib.Config; public class ReviewerRecommender { private static final FluentLogger logger = FluentLogger.forEnclosingClass(); - private static final double BASE_REVIEWER_WEIGHT = 10; - private static final double BASE_OWNER_WEIGHT = 1; - private static final double BASE_COMMENT_WEIGHT = 0.5; - private static final double[] WEIGHTS = - new double[] { - BASE_REVIEWER_WEIGHT, BASE_OWNER_WEIGHT, BASE_COMMENT_WEIGHT, - }; private static final long PLUGIN_QUERY_TIMEOUT = 500; // ms private final ChangeQueryBuilder changeQueryBuilder; diff --git a/java/com/google/gerrit/server/restapi/change/ReviewersUtil.java b/java/com/google/gerrit/server/restapi/change/ReviewersUtil.java index 122f3eb076..562fe84689 100644 --- a/java/com/google/gerrit/server/restapi/change/ReviewersUtil.java +++ b/java/com/google/gerrit/server/restapi/change/ReviewersUtil.java @@ -118,10 +118,6 @@ public class ReviewersUtil { } } - // Generate a candidate list at 3x the size of what the user wants to see to - // give the ranking algorithm a good set of candidates it can work with - private static final int CANDIDATE_LIST_MULTIPLIER = 3; - private final AccountLoader.Factory accountLoaderFactory; private final AccountQueryBuilder accountQueryBuilder; private final AccountIndexRewriter accountIndexRewriter;