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/models/sidebars/context.rb')
-rw-r--r--app/models/sidebars/context.rb21
1 files changed, 0 insertions, 21 deletions
diff --git a/app/models/sidebars/context.rb b/app/models/sidebars/context.rb
deleted file mode 100644
index d9ac2705aaf..00000000000
--- a/app/models/sidebars/context.rb
+++ /dev/null
@@ -1,21 +0,0 @@
-# frozen_string_literal: true
-
-# This class stores all the information needed to display and
-# render the sidebar and menus.
-# It usually stores information regarding the context and calculated
-# values where the logic is in helpers.
-module Sidebars
- class Context
- attr_reader :current_user, :container
-
- def initialize(current_user:, container:, **args)
- @current_user = current_user
- @container = container
-
- args.each do |key, value|
- singleton_class.public_send(:attr_reader, key) # rubocop:disable GitlabSecurity/PublicSend
- instance_variable_set("@#{key}", value)
- end
- end
- end
-end