diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2023-01-23 15:29:16 -0600 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-02-02 20:03:39 +0000 |
commit | 2a867fa579517222177bd14eb6e2d8d0b5cf287e (patch) | |
tree | c6d91cd3a653a8aae5a98682d8100598c189cdb9 /server/sonar-db-dao/src/main/java/org/sonar | |
parent | bbf23d6ad4ee140edbc02825d699a849ab47305a (diff) | |
download | sonarqube-2a867fa579517222177bd14eb6e2d8d0b5cf287e.tar.gz sonarqube-2a867fa579517222177bd14eb6e2d8d0b5cf287e.zip |
SONAR-17706 Drop support for projects still using modules in SonarQube server
Diffstat (limited to 'server/sonar-db-dao/src/main/java/org/sonar')
3 files changed, 0 insertions, 21 deletions
diff --git a/server/sonar-db-dao/src/main/java/org/sonar/db/MyBatis.java b/server/sonar-db-dao/src/main/java/org/sonar/db/MyBatis.java index dc6070aa9e7..4823fa8cfab 100644 --- a/server/sonar-db-dao/src/main/java/org/sonar/db/MyBatis.java +++ b/server/sonar-db-dao/src/main/java/org/sonar/db/MyBatis.java @@ -52,7 +52,6 @@ import org.sonar.db.component.BranchMapper; import org.sonar.db.component.ComponentDto; import org.sonar.db.component.ComponentKeyUpdaterMapper; import org.sonar.db.component.ComponentMapper; -import org.sonar.db.component.ComponentWithModuleUuidDto; import org.sonar.db.component.FilePathWithHashDto; import org.sonar.db.component.KeyWithUuidDto; import org.sonar.db.component.PrBranchAnalyzedLanguageCountByProjectDto; @@ -192,7 +191,6 @@ public class MyBatis { confBuilder.loadAlias("ApplicationProject", ApplicationProjectDto.class); confBuilder.loadAlias("CeTaskCharacteristic", CeTaskCharacteristicDto.class); confBuilder.loadAlias("Component", ComponentDto.class); - confBuilder.loadAlias("ComponentWithModuleUuid", ComponentWithModuleUuidDto.class); confBuilder.loadAlias("DuplicationUnit", DuplicationUnitDto.class); confBuilder.loadAlias("Event", EventDto.class); confBuilder.loadAlias("FilePathWithHash", FilePathWithHashDto.class); diff --git a/server/sonar-db-dao/src/main/java/org/sonar/db/component/ComponentDao.java b/server/sonar-db-dao/src/main/java/org/sonar/db/component/ComponentDao.java index aea15fb93a6..a73c55936ca 100644 --- a/server/sonar-db-dao/src/main/java/org/sonar/db/component/ComponentDao.java +++ b/server/sonar-db-dao/src/main/java/org/sonar/db/component/ComponentDao.java @@ -105,10 +105,6 @@ public class ComponentDao implements Dao { return mapper(dbSession).selectByBranchUuid(branchUuid); } - public int countEnabledModulesByBranchUuid(DbSession session, String branchUuid) { - return mapper(session).countEnabledModulesByBranchUuid(branchUuid); - } - /* SELECT BY QUERY */ @@ -175,13 +171,6 @@ public class ComponentDao implements Dao { return mapper(session).selectComponentsFromProjectKeyAndScope(projectKey, Scopes.PROJECT, excludeDisabled, branch, pullRequest); } - /** - * If no branch or pull request is provided, returns components in the main branch - */ - public List<ComponentDto> selectEnabledModulesFromProjectKey(DbSession session, String projectKey, @Nullable String branch, @Nullable String pullRequest) { - return selectProjectAndModulesFromProjectKey(session, projectKey, true, branch, pullRequest); - } - public List<ComponentDto> selectByKeys(DbSession session, Collection<String> keys) { return selectByKeys(session, keys, null, null); } @@ -301,10 +290,6 @@ public class ComponentDao implements Dao { return new HashSet<>(mapper(dbSession).selectComponentsByQualifiers(qualifiers)); } - public List<ComponentWithModuleUuidDto> selectEnabledComponentsWithModuleUuidFromProjectKey(DbSession dbSession, String projectKey) { - return mapper(dbSession).selectEnabledComponentsWithModuleUuidFromProjectKey(projectKey); - } - /** * Returns components with open issues from P/Rs that use a certain branch as reference (reference branch). * Excludes components from the current branch. diff --git a/server/sonar-db-dao/src/main/java/org/sonar/db/component/ComponentMapper.java b/server/sonar-db-dao/src/main/java/org/sonar/db/component/ComponentMapper.java index d16cad7608a..48d934d15c1 100644 --- a/server/sonar-db-dao/src/main/java/org/sonar/db/component/ComponentMapper.java +++ b/server/sonar-db-dao/src/main/java/org/sonar/db/component/ComponentMapper.java @@ -54,8 +54,6 @@ public interface ComponentMapper { List<ComponentDto> selectComponentsByQualifiers(@Param("qualifiers") Collection<String> qualifiers); - int countEnabledModulesByBranchUuid(@Param("branchUuid") String branchUuid); - List<ComponentDto> selectByQuery(@Param("query") ComponentQuery query, RowBounds rowBounds); int countByQuery(@Param("query") ComponentQuery query); @@ -139,7 +137,5 @@ public interface ComponentMapper { List<ProjectNclocDistributionDto> selectPrivateProjectsWithNcloc(); - List<ComponentWithModuleUuidDto> selectEnabledComponentsWithModuleUuidFromProjectKey(String projectKey); - short checkIfAnyOfComponentsWithQualifiers(@Param("componentKeys") Collection<String> componentKeys, @Param("qualifiers") Set<String> qualifiers); } |