Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/namespaces_helper.rb')
-rw-r--r--app/helpers/namespaces_helper.rb18
1 files changed, 0 insertions, 18 deletions
diff --git a/app/helpers/namespaces_helper.rb b/app/helpers/namespaces_helper.rb
index a50629b7996..60796e628a3 100644
--- a/app/helpers/namespaces_helper.rb
+++ b/app/helpers/namespaces_helper.rb
@@ -81,13 +81,6 @@ module NamespacesHelper
group.namespace_settings.public_send(method_name, **args) # rubocop:disable GitlabSecurity/PublicSend
end
- def namespaces_as_json(selected = :current_user)
- {
- group: formatted_namespaces(current_user.manageable_groups_with_routes),
- user: formatted_namespaces([current_user.namespace])
- }.to_json
- end
-
def pipeline_usage_app_data(namespace)
{
namespace_actual_plan_name: namespace.actual_plan_name,
@@ -129,17 +122,6 @@ module NamespacesHelper
[group_label.camelize, elements]
end
-
- def formatted_namespaces(namespaces)
- namespaces.sort_by(&:human_name).map! do |n|
- {
- id: n.id,
- display_path: n.full_path,
- human_name: n.human_name,
- name: n.name
- }
- end
- end
end
NamespacesHelper.prepend_mod_with('NamespacesHelper')