From cf56661cb780682a98030a55f7f4bb1c4a033d42 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Tue, 1 Mar 2016 10:08:24 +0100 Subject: [PATCH] SONAR-7330 remove unused SQL requests from RuleMapper --- .../java/org/sonar/db/rule/RuleMapper.java | 10 ----- .../org/sonar/db/rule/RuleMapper.xml | 41 ------------------- 2 files changed, 51 deletions(-) diff --git a/sonar-db/src/main/java/org/sonar/db/rule/RuleMapper.java b/sonar-db/src/main/java/org/sonar/db/rule/RuleMapper.java index 8001cc380fb..c98b551dbd0 100644 --- a/sonar-db/src/main/java/org/sonar/db/rule/RuleMapper.java +++ b/sonar-db/src/main/java/org/sonar/db/rule/RuleMapper.java @@ -19,9 +19,7 @@ */ package org.sonar.db.rule; -import java.sql.Timestamp; import java.util.List; -import javax.annotation.Nullable; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.session.ResultHandler; import org.sonar.api.rule.RuleKey; @@ -53,25 +51,17 @@ public interface RuleMapper { void update(RuleDto rule); - void batchInsert(RuleDto rule); - void insert(RuleDto rule); - List selectAllParams(); - List selectParamsByRuleIds(@Param("ruleIds") List ruleIds); List selectParamsByRuleKey(RuleKey ruleKey); List selectParamsByRuleKeys(@Param("ruleKeys") List ruleKeys); - RuleParamDto selectParamByRuleAndKey(@Param("ruleId") Integer ruleId, @Param("key") String key); - void insertParameter(RuleParamDto param); void updateParameter(RuleParamDto param); void deleteParameter(Integer paramId); - - List selectAfterDate(@Nullable @Param("date") Timestamp timestamp); } diff --git a/sonar-db/src/main/resources/org/sonar/db/rule/RuleMapper.xml b/sonar-db/src/main/resources/org/sonar/db/rule/RuleMapper.xml index aded450d199..fd22b8d0576 100644 --- a/sonar-db/src/main/resources/org/sonar/db/rule/RuleMapper.xml +++ b/sonar-db/src/main/resources/org/sonar/db/rule/RuleMapper.xml @@ -39,17 +39,6 @@ from rules r - - - select - - from rules_parameters p - - - - delete from rules_parameters where id=#{id} -- 2.39.5