aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-db
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2016-10-17 17:48:19 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2016-10-20 15:10:12 +0200
commitbc1570062f5f636fcbf00256e9487dd0e13bdcd2 (patch)
tree52a789964b4ae19c6b9a3ed6ab01b344934a4f50 /sonar-db
parent1e663e71492dc7a9a1d9bd1a33e22b34545748e0 (diff)
downloadsonarqube-bc1570062f5f636fcbf00256e9487dd0e13bdcd2.tar.gz
sonarqube-bc1570062f5f636fcbf00256e9487dd0e13bdcd2.zip
SONAR-8134 delete unused GroupDao#selectByName(DbSession, String)
Diffstat (limited to 'sonar-db')
-rw-r--r--sonar-db/src/main/java/org/sonar/db/user/GroupDao.java9
-rw-r--r--sonar-db/src/main/java/org/sonar/db/user/GroupMapper.java3
-rw-r--r--sonar-db/src/main/resources/org/sonar/db/user/GroupMapper.xml7
3 files changed, 0 insertions, 19 deletions
diff --git a/sonar-db/src/main/java/org/sonar/db/user/GroupDao.java b/sonar-db/src/main/java/org/sonar/db/user/GroupDao.java
index 9a0d2824e08..30ad7a49f28 100644
--- a/sonar-db/src/main/java/org/sonar/db/user/GroupDao.java
+++ b/sonar-db/src/main/java/org/sonar/db/user/GroupDao.java
@@ -45,15 +45,6 @@ public class GroupDao implements Dao {
}
/**
- * @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)
* @param name non-null group name
diff --git a/sonar-db/src/main/java/org/sonar/db/user/GroupMapper.java b/sonar-db/src/main/java/org/sonar/db/user/GroupMapper.java
index 3d258876b9b..d056931638a 100644
--- a/sonar-db/src/main/java/org/sonar/db/user/GroupMapper.java
+++ b/sonar-db/src/main/java/org/sonar/db/user/GroupMapper.java
@@ -28,9 +28,6 @@ import org.apache.ibatis.session.RowBounds;
public interface GroupMapper {
@CheckForNull
- GroupDto selectByKey(String name);
-
- @CheckForNull
GroupDto selectById(long groupId);
List<GroupDto> selectByUserLogin(String userLogin);
diff --git a/sonar-db/src/main/resources/org/sonar/db/user/GroupMapper.xml b/sonar-db/src/main/resources/org/sonar/db/user/GroupMapper.xml
index 45cfbc85797..45d71a4d7b6 100644
--- a/sonar-db/src/main/resources/org/sonar/db/user/GroupMapper.xml
+++ b/sonar-db/src/main/resources/org/sonar/db/user/GroupMapper.xml
@@ -30,13 +30,6 @@
</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"/>