]> source.dussan.org Git - sonarqube.git/commitdiff
Drop unused method QualityProfileMapper#selectByProjectIdAndLanguage()
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Tue, 21 Mar 2017 20:26:43 +0000 (21:26 +0100)
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Thu, 23 Mar 2017 16:38:34 +0000 (17:38 +0100)
server/sonar-db-dao/src/main/java/org/sonar/db/qualityprofile/QualityProfileMapper.java
server/sonar-db-dao/src/main/resources/org/sonar/db/qualityprofile/QualityProfileMapper.xml

index 520ae8db2d9676f7af4b00a45c3d078380eca68d..f84112fbf3cf3da3111f955ff2372206b5cd47ee 100644 (file)
@@ -67,8 +67,6 @@ public interface QualityProfileMapper {
 
   List<QualityProfileProjectCount> countProjectsByProfile();
 
-  QualityProfileDto selectByProjectIdAndLanguage(@Param("projectId") Long projectId, @Param("language") String language);
-
   QualityProfileDto selectByProjectAndLanguage(@Param("projectKey") String projectKey, @Param("language") String language);
 
   List<QualityProfileDto> selectByProjectAndLanguages(@Param("organizationUuid") String organizationUuid, @Param("projectKey") String projectKey,
index d3da8b3b4d23f07943822c5a512a9d95d6c99dd3..bcd2b020b1d7c9c6decde5216a2a90667c44cd9d 100644 (file)
     GROUP BY pp.profile_key
   </select>
 
-  <select id="selectByProjectIdAndLanguage" parameterType="map" resultType="QualityProfile">
-    SELECT
-    <include refid="profilesColumns"/>
-    FROM rules_profiles p
-    JOIN project_qprofiles pp ON pp.profile_key=p.kee
-    JOIN projects project ON pp.project_uuid=project.uuid
-    AND project.id=#{projectId}
-    WHERE p.language=#{language}
-  </select>
-
   <select id="selectByProjectAndLanguage" parameterType="map" resultType="QualityProfile">
     SELECT
     <include refid="profilesColumns"/>