aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-db/src
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2017-01-30 14:39:41 +0100
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>2017-01-31 14:39:53 +0100
commit9a7b438110508b68b12174426645e382c9732c81 (patch)
treeedc8ec34f89afa217413d7f3b3eb7c0d4d22fef6 /sonar-db/src
parentbe45c77d7b596d2afaf7d5981d13007a100faf24 (diff)
downloadsonarqube-9a7b438110508b68b12174426645e382c9732c81.tar.gz
sonarqube-9a7b438110508b68b12174426645e382c9732c81.zip
fix quality flaw: remove unused field and method
Diffstat (limited to 'sonar-db/src')
-rw-r--r--sonar-db/src/main/java/org/sonar/db/component/ComponentDao.java8
1 files changed, 0 insertions, 8 deletions
diff --git a/sonar-db/src/main/java/org/sonar/db/component/ComponentDao.java b/sonar-db/src/main/java/org/sonar/db/component/ComponentDao.java
index 7deb692a59a..dda0e063456 100644
--- a/sonar-db/src/main/java/org/sonar/db/component/ComponentDao.java
+++ b/sonar-db/src/main/java/org/sonar/db/component/ComponentDao.java
@@ -27,7 +27,6 @@ import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Locale;
-import java.util.Map;
import java.util.Set;
import javax.annotation.CheckForNull;
import javax.annotation.Nullable;
@@ -305,13 +304,6 @@ public class ComponentDao implements Dao {
return mapper(dbSession).selectProjectsByNameQuery(nameQueryForSql, includeModules);
}
- private static void addPartialQueryParameterIfNotNull(Map<String, Object> parameters, @Nullable String keyOrNameFilter) {
- // TODO rely on resource_index table and match exactly the key
- if (keyOrNameFilter != null) {
- parameters.put("query", queryParameterFrom(keyOrNameFilter));
- }
- }
-
@CheckForNull
private static String queryParameterFrom(@Nullable String keyOrNameFilter) {
if (keyOrNameFilter != null) {