]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-7330 WS api/rules/show drop unused parameters
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Mon, 29 Feb 2016 15:09:06 +0000 (16:09 +0100)
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Tue, 1 Mar 2016 13:27:28 +0000 (14:27 +0100)
server/sonar-server/src/main/java/org/sonar/server/rule/ws/ShowAction.java

index e07daf9cad40f91d0cadfb10ea0aaa37596f02ff..8adc0e03502bebcc494ddda5ad40426499417e68 100644 (file)
@@ -32,7 +32,6 @@ import org.sonar.db.DbClient;
 import org.sonar.db.DbSession;
 import org.sonar.db.rule.RuleDto;
 import org.sonar.db.rule.RuleParamDto;
-import org.sonar.server.rule.RuleService;
 import org.sonarqube.ws.Rules.ShowResponse;
 
 import static java.util.Collections.singletonList;
@@ -48,15 +47,11 @@ public class ShowAction implements RulesWsAction {
   public static final String PARAM_ACTIVES = "actives";
 
   private final DbClient dbClient;
-  private final RuleService service;
-  private final RuleMapping mapping;
   private final RuleMapper mapper;
   private final ActiveRuleCompleter activeRuleCompleter;
 
-  public ShowAction(DbClient dbClient, RuleService service, RuleMapping mapping, RuleMapper mapper, ActiveRuleCompleter activeRuleCompleter) {
+  public ShowAction(DbClient dbClient, RuleMapper mapper, ActiveRuleCompleter activeRuleCompleter) {
     this.dbClient = dbClient;
-    this.service = service;
-    this.mapping = mapping;
     this.activeRuleCompleter = activeRuleCompleter;
     this.mapper = mapper;
   }