From: Simon Brandhof Date: Wed, 18 Jan 2017 19:18:17 +0000 (+0100) Subject: Remove unused Platform#getServer() X-Git-Tag: 6.3-RC1~480 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c7032bbeb33b65e4ea37960f0d795d70015e906a;p=sonarqube.git Remove unused Platform#getServer() --- diff --git a/server/sonar-server/src/main/java/org/sonar/server/platform/Platform.java b/server/sonar-server/src/main/java/org/sonar/server/platform/Platform.java index 95f86d74973..1ca7998c81d 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/platform/Platform.java +++ b/server/sonar-server/src/main/java/org/sonar/server/platform/Platform.java @@ -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 */ diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/helpers/application_helper.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/helpers/application_helper.rb index 70bb91a0250..2e960644d56 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/helpers/application_helper.rb +++ b/server/sonar-web/src/main/webapp/WEB-INF/app/helpers/application_helper.rb @@ -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