From 9a7b438110508b68b12174426645e382c9732c81 Mon Sep 17 00:00:00 2001 From: Sébastien Lesaint Date: Mon, 30 Jan 2017 14:39:41 +0100 Subject: fix quality flaw: remove unused field and method --- sonar-db/src/main/java/org/sonar/db/component/ComponentDao.java | 8 -------- 1 file changed, 8 deletions(-) (limited to 'sonar-db/src') 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 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) { -- cgit v1.2.3