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/null_request_store.rb')
-rw-r--r--lib/gitlab/null_request_store.rb41
1 files changed, 0 insertions, 41 deletions
diff --git a/lib/gitlab/null_request_store.rb b/lib/gitlab/null_request_store.rb
deleted file mode 100644
index 4642dcf9e91..00000000000
--- a/lib/gitlab/null_request_store.rb
+++ /dev/null
@@ -1,41 +0,0 @@
-# frozen_string_literal: true
-
-# Used by Gitlab::SafeRequestStore
-module Gitlab
- # The methods `begin!`, `clear!`, and `end!` are not defined because they
- # should only be called directly on `RequestStore`.
- class NullRequestStore
- def store
- {}
- end
-
- def active?
- end
-
- def read(key)
- end
-
- def [](key)
- end
-
- def write(key, value)
- value
- end
-
- def []=(key, value)
- value
- end
-
- def exist?(key)
- false
- end
-
- def fetch(key, &block)
- yield
- end
-
- def delete(key, &block)
- yield(key) if block
- end
- end
-end