diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-11-01 00:06:28 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-11-01 00:06:28 +0300 |
commit | 8f210aebe1d740e8ee194f171f1f33a6e1fba313 (patch) | |
tree | f43c545801bb96fd0737f18493fb30ab92972627 /lib/gitlab/utils.rb | |
parent | 996f700997805b3590da8d8afdd19d193989078a (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/utils.rb')
-rw-r--r-- | lib/gitlab/utils.rb | 10 |
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 |