diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2016-06-28 10:05:21 +0200 |
---|---|---|
committer | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2016-07-04 15:20:29 +0200 |
commit | b98637ae83134a08e2350313498768b2a1c2f4f3 (patch) | |
tree | a778af8a366e2316d5bb39c42bfb90fedb909c81 /sonar-db | |
parent | 2eedbcc8b76ca3565e30e64c1413f4aeba903b34 (diff) | |
download | sonarqube-b98637ae83134a08e2350313498768b2a1c2f4f3.tar.gz sonarqube-b98637ae83134a08e2350313498768b2a1c2f4f3.zip |
remove unused PurgeSnapshotQuery#qualifiers
Diffstat (limited to 'sonar-db')
-rw-r--r-- | sonar-db/src/main/java/org/sonar/db/purge/PurgeSnapshotQuery.java | 10 | ||||
-rw-r--r-- | sonar-db/src/main/resources/org/sonar/db/purge/PurgeMapper.xml | 5 |
2 files changed, 0 insertions, 15 deletions
diff --git a/sonar-db/src/main/java/org/sonar/db/purge/PurgeSnapshotQuery.java b/sonar-db/src/main/java/org/sonar/db/purge/PurgeSnapshotQuery.java index 52dc9dc42e7..de351faaaef 100644 --- a/sonar-db/src/main/java/org/sonar/db/purge/PurgeSnapshotQuery.java +++ b/sonar-db/src/main/java/org/sonar/db/purge/PurgeSnapshotQuery.java @@ -25,7 +25,6 @@ public final class PurgeSnapshotQuery { private Long rootSnapshotId; private String componentUuid; private String[] scopes; - private String[] qualifiers; private String[] status; private Boolean islast; private Boolean notPurged; @@ -65,15 +64,6 @@ public final class PurgeSnapshotQuery { return this; } - public String[] getQualifiers() { - return qualifiers;// NOSONAR May expose internal representation by returning reference to mutable object - } - - public PurgeSnapshotQuery setQualifiers(String[] qualifiers) { - this.qualifiers = qualifiers;// NOSONAR May expose internal representation by incorporating reference to mutable object - return this; - } - public String[] getStatus() { return status;// NOSONAR May expose internal representation by returning reference to mutable object } diff --git a/sonar-db/src/main/resources/org/sonar/db/purge/PurgeMapper.xml b/sonar-db/src/main/resources/org/sonar/db/purge/PurgeMapper.xml index 7aa9ed81d57..858e5ff2851 100644 --- a/sonar-db/src/main/resources/org/sonar/db/purge/PurgeMapper.xml +++ b/sonar-db/src/main/resources/org/sonar/db/purge/PurgeMapper.xml @@ -32,11 +32,6 @@ and s.scope in <foreach item="scope" index="index" collection="scopes" open="(" separator="," close=")">#{scope}</foreach> </if> - <if test="qualifiers != null"> - and s.qualifier in - <foreach item="qualifier" index="index" collection="qualifiers" open="(" separator="," close=")">#{qualifier} - </foreach> - </if> <if test="withVersionEvent != null"> <if test="withVersionEvent"> and exists(select e.id from events e where e.snapshot_id=s.id and e.category='Version') |