From a20db57337fc87875637eda882189c2150b3136a Mon Sep 17 00:00:00 2001 From: Daniel Schwarz Date: Fri, 13 Jan 2017 10:44:59 +0100 Subject: [PATCH] SONAR-7282 drop method "JRubyFacade.indexComponent"; it was unused The method had been used by the developer cockpit. It would have required some changes concerning Indexation, but we did not want to do that, as dev cockpit is unmaintained. --- .../src/main/java/org/sonar/server/ui/JRubyFacade.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/server/sonar-server/src/main/java/org/sonar/server/ui/JRubyFacade.java b/server/sonar-server/src/main/java/org/sonar/server/ui/JRubyFacade.java index 6f18995e263..c0b91fffef6 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/ui/JRubyFacade.java +++ b/server/sonar-server/src/main/java/org/sonar/server/ui/JRubyFacade.java @@ -275,16 +275,6 @@ public final class JRubyFacade { return !database.getDialect().supportsMigration(); } - /** - * Used by Developer Cockpit - */ - public void indexComponent(String componentUuid) { - DbClient dbClient = get(DbClient.class); - try (DbSession dbSession = dbClient.openSession(false)) { - dbClient.componentIndexDao().indexResource(dbSession, componentUuid); - } - } - public List getIdentityProviders() { return get(IdentityProviderRepository.class).getAllEnabledAndSorted(); } -- 2.39.5