]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4923 Delete useless method
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Fri, 17 Jan 2014 13:56:54 +0000 (14:56 +0100)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Fri, 17 Jan 2014 13:56:54 +0000 (14:56 +0100)
sonar-server/src/main/java/org/sonar/server/qualityprofile/QProfiles.java
sonar-server/src/test/java/org/sonar/server/qualityprofile/QProfilesTest.java

index ae36c7a5ec40cf5e862fd3a1813f9f666dc3be0a..11b1ae31fcdf40b3fdbeb2ba8002788bfaa62393 100644 (file)
@@ -155,10 +155,6 @@ public class QProfiles implements ServerComponent {
     return backup.backupProfile(profile);
   }
 
-  public boolean isDeletable(QProfile profile) {
-    return profileLookup.isDeletable(profile);
-  }
-
   public void deleteProfile(int profileId) {
     operations.deleteProfile(profileId, UserSession.get());
   }
index da6f3c46cee4acdc9f1fb9d54afd81916d8578be..bfd340c8e71f053a74e0fb5edd8515d961570531 100644 (file)
@@ -196,12 +196,6 @@ public class QProfilesTest {
     verify(qualityProfileDao, never()).update(any(QualityProfileDto.class));
   }
 
-  @Test
-  public void is_deletable() throws Exception {
-    qProfiles.isDeletable(new QProfile());
-    verify(profileLookup).isDeletable(any(QProfile.class));
-  }
-
   @Test
   public void delete_profile() throws Exception {
     qProfiles.deleteProfile(1);