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:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-11-01 00:06:28 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2019-11-01 00:06:28 +0300
commit8f210aebe1d740e8ee194f171f1f33a6e1fba313 (patch)
treef43c545801bb96fd0737f18493fb30ab92972627 /lib/gitlab/utils.rb
parent996f700997805b3590da8d8afdd19d193989078a (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/utils.rb')
-rw-r--r--lib/gitlab/utils.rb10
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/gitlab/utils.rb b/lib/gitlab/utils.rb
index 5cba6c52773..7fbfc4c45c4 100644
--- a/lib/gitlab/utils.rb
+++ b/lib/gitlab/utils.rb
@@ -130,15 +130,5 @@ module Gitlab
IPAddr.new(str)
rescue IPAddr::InvalidAddressError
end
-
- # Filter a Hash against a mapping of keys to sets of allowed values.
- #
- # Keys that do not pass the filter will be removed from the Hash.
- # This mutates the input hash.
- def allow_hash_values(hash, allowed)
- allowed.each do |key, allowed_values|
- hash.delete(key) if hash.key?(key) && !allowed_values.include?(hash[key])
- end
- end
end
end