diff options
author | Phil Hughes <me@iamphill.com> | 2018-03-01 15:05:25 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-03-02 08:42:03 +0000 |
commit | 148cc3c21b7e7132111244cd9908a4bcbbb0891b (patch) | |
tree | 666b1c3fc8f6e79527491da5da57ec7a68062342 /app/helpers | |
parent | 4927cb75e6ab82500b3d055f35ea621483c224fe (diff) | |
download | gitlab-ce-148cc3c21b7e7132111244cd9908a4bcbbb0891b.tar.gz |
removed helper methods
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/application_helper.rb | 4 | ||||
-rw-r--r-- | app/helpers/blob_helper.rb | 14 |
2 files changed, 0 insertions, 18 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 475341cf9b1..af9c8bf1bd3 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -320,10 +320,6 @@ module ApplicationHelper cookies["sidebar_collapsed"] == "true" end - def show_new_ide? - cookies["new_repo"] == "true" && body_data_page != 'projects:show' - end - def locale_path asset_path("locale/#{Gitlab::I18n.locale}/app.js") end diff --git a/app/helpers/blob_helper.rb b/app/helpers/blob_helper.rb index 0e806d16bc5..5ff09b23a78 100644 --- a/app/helpers/blob_helper.rb +++ b/app/helpers/blob_helper.rb @@ -33,20 +33,6 @@ module BlobHelper ref) end - def ide_edit_button(project = @project, ref = @ref, path = @path, options = {}) - return unless show_new_ide? - return unless blob = readable_blob(options, path, project, ref) - - common_classes = "btn js-edit-ide #{options[:extra_class]}" - - edit_button_tag(blob, - common_classes, - _('Web IDE'), - ide_edit_path(project, ref, path, options), - project, - ref) - end - def modify_file_button(project = @project, ref = @ref, path = @path, label:, action:, btn_class:, modal_type:) return unless current_user |