From 90b5e2cece88aa9549998f19af872d6e1ab29fd6 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Thu, 8 Sep 2016 15:00:14 +0200 Subject: Drop Ruby dead code --- .../src/main/java/RubyApiGlobalPage.java | 40 --------------------- .../src/main/java/RubyApiProjectPage.java | 42 ---------------------- .../src/main/java/UiExtensionsPlugin.java | 2 -- .../src/main/resources/ruby-api-global-page.erb | 33 ----------------- .../src/main/resources/ruby-api-project.page.rb | 3 -- 5 files changed, 120 deletions(-) delete mode 100644 it/it-plugins/ui-extensions-plugin/src/main/java/RubyApiGlobalPage.java delete mode 100644 it/it-plugins/ui-extensions-plugin/src/main/java/RubyApiProjectPage.java delete mode 100644 it/it-plugins/ui-extensions-plugin/src/main/resources/ruby-api-global-page.erb delete mode 100644 it/it-plugins/ui-extensions-plugin/src/main/resources/ruby-api-project.page.rb (limited to 'it/it-plugins/ui-extensions-plugin/src') diff --git a/it/it-plugins/ui-extensions-plugin/src/main/java/RubyApiGlobalPage.java b/it/it-plugins/ui-extensions-plugin/src/main/java/RubyApiGlobalPage.java deleted file mode 100644 index 37c3ae6e180..00000000000 --- a/it/it-plugins/ui-extensions-plugin/src/main/java/RubyApiGlobalPage.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * SonarQube - * Copyright (C) 2009-2016 SonarSource SA - * mailto:contact AT sonarsource DOT com - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ -import org.sonar.api.web.AbstractRubyTemplate; -import org.sonar.api.web.NavigationSection; -import org.sonar.api.web.RubyRailsPage; - -@NavigationSection({NavigationSection.HOME}) -public class RubyApiGlobalPage extends AbstractRubyTemplate implements RubyRailsPage { - - public String getId() { - return getClass().getName(); - } - - public String getTitle() { - return "Ruby API Global Page"; - } - - @Override - public String getTemplatePath() { - return "/ruby-api-global-page.erb"; - } - -} diff --git a/it/it-plugins/ui-extensions-plugin/src/main/java/RubyApiProjectPage.java b/it/it-plugins/ui-extensions-plugin/src/main/java/RubyApiProjectPage.java deleted file mode 100644 index c868215ba11..00000000000 --- a/it/it-plugins/ui-extensions-plugin/src/main/java/RubyApiProjectPage.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * SonarQube - * Copyright (C) 2009-2016 SonarSource SA - * mailto:contact AT sonarsource DOT com - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ -import org.sonar.api.web.AbstractRubyTemplate; -import org.sonar.api.web.NavigationSection; -import org.sonar.api.web.RubyRailsPage; -import org.sonar.api.web.UserRole; - -@NavigationSection({NavigationSection.RESOURCE}) -@UserRole(UserRole.USER) -public class RubyApiProjectPage extends AbstractRubyTemplate implements RubyRailsPage { - - public String getId() { - return getClass().getName(); - } - - public String getTitle() { - return "Ruby API Project Page"; - } - - @Override - public String getTemplatePath() { - return "/ruby-api-project-page.erb"; - } - -} diff --git a/it/it-plugins/ui-extensions-plugin/src/main/java/UiExtensionsPlugin.java b/it/it-plugins/ui-extensions-plugin/src/main/java/UiExtensionsPlugin.java index e75149eb32d..c236dff6b71 100644 --- a/it/it-plugins/ui-extensions-plugin/src/main/java/UiExtensionsPlugin.java +++ b/it/it-plugins/ui-extensions-plugin/src/main/java/UiExtensionsPlugin.java @@ -26,8 +26,6 @@ public class UiExtensionsPlugin extends SonarPlugin { public List getExtensions() { return Arrays.asList( FakePageDecorations.class, - RubyApiGlobalPage.class, - RubyApiProjectPage.class, ResourceConfigurationPage.class ); } diff --git a/it/it-plugins/ui-extensions-plugin/src/main/resources/ruby-api-global-page.erb b/it/it-plugins/ui-extensions-plugin/src/main/resources/ruby-api-global-page.erb deleted file mode 100644 index 40aea8687f9..00000000000 --- a/it/it-plugins/ui-extensions-plugin/src/main/resources/ruby-api-global-page.erb +++ /dev/null @@ -1,33 +0,0 @@ -

Ruby API Global Page

- -<% success=true %> - -<% if logged_in? %> -

User Properties

- -<% end %> - -
-

Result: <%= success ? 'OK' : 'FAIL' %>

diff --git a/it/it-plugins/ui-extensions-plugin/src/main/resources/ruby-api-project.page.rb b/it/it-plugins/ui-extensions-plugin/src/main/resources/ruby-api-project.page.rb deleted file mode 100644 index 7cbc55a983d..00000000000 --- a/it/it-plugins/ui-extensions-plugin/src/main/resources/ruby-api-project.page.rb +++ /dev/null @@ -1,3 +0,0 @@ -

Ruby API Project

- -

Project name is: <%= @project.name -%>

-- cgit v1.2.3