]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-8134 delete unused GroupDao#selectByName(DbSession, String)
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Mon, 17 Oct 2016 15:48:19 +0000 (17:48 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Thu, 20 Oct 2016 13:10:12 +0000 (15:10 +0200)
sonar-db/src/main/java/org/sonar/db/user/GroupDao.java
sonar-db/src/main/java/org/sonar/db/user/GroupMapper.java
sonar-db/src/main/resources/org/sonar/db/user/GroupMapper.xml

index 9a0d2824e08b46640e0ca31b5002d3f1ea15d395..30ad7a49f28f5e22c12ecfc52c00ea2bb1e543a8 100644 (file)
@@ -44,15 +44,6 @@ public class GroupDao implements Dao {
     this.system = system;
   }
 
-  /**
-   * @deprecated replaced by {@link #selectByName(DbSession, String, String)}
-   */
-  @Deprecated
-  @CheckForNull
-  public GroupDto selectByName(DbSession session, String key) {
-    return mapper(session).selectByKey(key);
-  }
-
   /**
    * @param dbSession
    * @param organizationUuid non-null UUID of organization (no support of "default" organization)
index 3d258876b9bf4be9ef15167ff73550c0ec0470fc..d056931638aab78dd5f71ee592306d0d3fc0303c 100644 (file)
@@ -27,9 +27,6 @@ import org.apache.ibatis.session.RowBounds;
 
 public interface GroupMapper {
 
-  @CheckForNull
-  GroupDto selectByKey(String name);
-
   @CheckForNull
   GroupDto selectById(long groupId);
 
index 45cfbc85797d9ac8e8c2d408d65e10af40eb8803..45d71a4d7b65e4a7695fef7a799853209b1ad617 100644 (file)
     </foreach>
   </select>
 
-  <select id="selectByKey" parameterType="string" resultType="Group">
-    SELECT
-    <include refid="groupColumns"/>
-    FROM groups g
-    where g.name=#{id,jdbcType=BIGINT}
-  </select>
-
   <select id="selectById" parameterType="long" resultType="Group">
     SELECT
     <include refid="groupColumns"/>