]> source.dussan.org Git - sonarqube.git/commitdiff
Remove unused Platform#getServer()
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Wed, 18 Jan 2017 19:18:17 +0000 (20:18 +0100)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Wed, 18 Jan 2017 19:47:59 +0000 (20:47 +0100)
server/sonar-server/src/main/java/org/sonar/server/platform/Platform.java
server/sonar-web/src/main/webapp/WEB-INF/app/helpers/application_helper.rb

index 95f86d74973d74000821c243084a77642fe5e0a5..1ca7998c81d3663c5520d92db1f9c3f52cdb426a 100644 (file)
@@ -25,7 +25,6 @@ import java.util.List;
 import java.util.Properties;
 import javax.annotation.CheckForNull;
 import javax.servlet.ServletContext;
-import org.sonar.api.platform.Server;
 import org.sonar.api.utils.log.Logger;
 import org.sonar.api.utils.log.Loggers;
 import org.sonar.api.utils.log.Profiler;
@@ -65,13 +64,6 @@ public class Platform {
     return INSTANCE;
   }
 
-  /**
-   * shortcut for ruby code
-   */
-  public static Server getServer() {
-    return (Server) getInstance().getComponent(Server.class);
-  }
-
   /**
    * Used by ruby code
    */
index 70bb91a02505a17215150c1d86fbd1e11859cfee..2e960644d56a1ef608f9ac1490a2dec94bb39e6d 100644 (file)
@@ -80,10 +80,6 @@ module ApplicationHelper
     Internal.i18n.ageFromNow(date)
   end
 
-  def sonar_version
-    Java::OrgSonarServerPlatform::Platform.getServer().getVersion()
-  end
-
   def property_value_by_key(key)
     property = Property.by_key(key)
     property.value if property