[rubygems/rubygems] Remove unnecessary flag_deprecation method

d1f8e1c4ac
This commit is contained in:
David Rodríguez 2025-07-15 20:56:24 +02:00 committed by Hiroshi SHIBATA
parent c451f478e6
commit 249cf5397f

View file

@ -748,10 +748,6 @@ module Bundler
flag_name = option.switch_name
flag_name = "--no-" + flag_name.gsub(/\A--/, "") if negative
flag_deprecation(name, flag_name, option)
end
def flag_deprecation(name, flag_name, option)
name_index = ARGV.find {|arg| flag_name == arg.split("=")[0] }
return unless name_index