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 'lib/gitlab/usage_data_counters.rb')
-rw-r--r--lib/gitlab/usage_data_counters.rb16
1 files changed, 2 insertions, 14 deletions
diff --git a/lib/gitlab/usage_data_counters.rb b/lib/gitlab/usage_data_counters.rb
index 37c6e1af7c0..c2961de0eb9 100644
--- a/lib/gitlab/usage_data_counters.rb
+++ b/lib/gitlab/usage_data_counters.rb
@@ -2,9 +2,7 @@
module Gitlab
module UsageDataCounters
- COUNTERS = [].freeze
-
- COUNTERS_MIGRATED_TO_INSTRUMENTATION_CLASSES = [
+ COUNTERS = [
PackageEventCounter,
MergeRequestCounter,
DesignsCounter,
@@ -26,12 +24,8 @@ module Gitlab
UnknownEvent = Class.new(UsageDataCounterError)
class << self
- def unmigrated_counters
- self::COUNTERS
- end
-
def counters
- unmigrated_counters + migrated_counters
+ COUNTERS
end
def count(event_name)
@@ -43,12 +37,6 @@ module Gitlab
raise UnknownEvent, "Cannot find counter for event #{event_name}"
end
-
- private
-
- def migrated_counters
- COUNTERS_MIGRATED_TO_INSTRUMENTATION_CLASSES
- end
end
end
end