]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-8857 remove dead code in QProfileService
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Mon, 13 Mar 2017 15:50:12 +0000 (16:50 +0100)
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Thu, 23 Mar 2017 16:38:34 +0000 (17:38 +0100)
server/sonar-server/src/main/java/org/sonar/server/qualityprofile/QProfileService.java

index c8b68b19a496ac297d0b5b76134e926e510f2a4b..a82c3b0956b9d9e9d2df21bf1dd52eaee1b971ed 100644 (file)
@@ -19,7 +19,6 @@
  */
 package org.sonar.server.qualityprofile;
 
-import java.io.Writer;
 import java.util.List;
 import javax.annotation.Nullable;
 import org.sonar.api.server.ServerSide;
@@ -39,16 +38,14 @@ public class QProfileService {
   private final DbClient db;
   private final ActiveRuleIndexer activeRuleIndexer;
   private final RuleActivator ruleActivator;
-  private final QProfileBackuper backuper;
   private final UserSession userSession;
   private final DefaultOrganizationProvider defaultOrganizationProvider;
 
-  public QProfileService(DbClient db, ActiveRuleIndexer activeRuleIndexer, RuleActivator ruleActivator, QProfileBackuper backuper,
+  public QProfileService(DbClient db, ActiveRuleIndexer activeRuleIndexer, RuleActivator ruleActivator,
     UserSession userSession, DefaultOrganizationProvider defaultOrganizationProvider) {
     this.db = db;
     this.activeRuleIndexer = activeRuleIndexer;
     this.ruleActivator = ruleActivator;
-    this.backuper = backuper;
     this.userSession = userSession;
     this.defaultOrganizationProvider = defaultOrganizationProvider;
   }
@@ -89,11 +86,6 @@ public class QProfileService {
     return ruleActivator.bulkDeactivate(ruleQuery, profile);
   }
 
-  public void backup(String profileKey, Writer writer) {
-    // Allowed to non-admin users (see http://jira.sonarsource.com/browse/SONAR-2039)
-    backuper.backup(profileKey, writer);
-  }
-
   private void verifyAdminPermission() {
     userSession
       .checkLoggedIn()