]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-7282 drop method "JRubyFacade.indexComponent"; it was unused
authorDaniel Schwarz <daniel.schwarz@sonarsource.com>
Fri, 13 Jan 2017 09:44:59 +0000 (10:44 +0100)
committerDaniel Schwarz <daniel.schwarz@sonarsource.com>
Mon, 16 Jan 2017 15:13:33 +0000 (16:13 +0100)
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.

server/sonar-server/src/main/java/org/sonar/server/ui/JRubyFacade.java

index 6f18995e2634ceccc90b764228e548fa52f67331..c0b91fffef6ccb8754cc5256f9a379d10b201a62 100644 (file)
@@ -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<IdentityProvider> getIdentityProviders() {
     return get(IdentityProviderRepository.class).getAllEnabledAndSorted();
   }