diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-06-27 18:18:05 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-06-27 18:19:46 +0200 |
commit | c860ec4843789922e35570e9d2ada1568de98288 (patch) | |
tree | e41b0e55bc83b9252acaefde7e0cfeaa6d89eb5d /sonar-db/src/main | |
parent | d20ca1857a018a6b255a6eae7e5eeb71b31c22ab (diff) | |
download | sonarqube-c860ec4843789922e35570e9d2ada1568de98288.tar.gz sonarqube-c860ec4843789922e35570e9d2ada1568de98288.zip |
Remove unused method ComponentDao#existsById()
Diffstat (limited to 'sonar-db/src/main')
-rw-r--r-- | sonar-db/src/main/java/org/sonar/db/component/ComponentDao.java | 7 |
1 files changed, 2 insertions, 5 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 256e03ec2ce..6742bec2cc0 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 @@ -85,10 +85,6 @@ public class ComponentDao implements Dao { return mapper(session).countByQuery(query); } - public boolean existsById(Long id, DbSession session) { - return mapper(session).countById(id) > 0; - } - public List<ComponentDto> selectSubProjectsByComponentUuids(DbSession session, Collection<String> keys) { if (keys.isEmpty()) { return emptyList(); @@ -157,7 +153,8 @@ public class ComponentDao implements Dao { /** * List of ancestors, ordered from root to parent. The list is empty - * if the component is a tree root. + * if the component is a tree root. Disabled components are excluded by design + * as tree represents the more recent analysis. */ public List<ComponentDto> selectAncestors(DbSession dbSession, ComponentDto component) { if (component.isRoot()) { |