From 68bb6ceeafeae3c06f09f8d120d3194eaa2d131d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Wed, 29 Jan 2025 19:23:08 +0100 Subject: Remove unnecessary SINCE_FAST_PATH constant If anything, I think this may be causing some false positives. --- lib/bundled_gems.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/bundled_gems.rb b/lib/bundled_gems.rb index 17fd4b85f6..379cee5136 100644 --- a/lib/bundled_gems.rb +++ b/lib/bundled_gems.rb @@ -33,8 +33,6 @@ module Gem::BUNDLED_GEMS # :nodoc: # "readline" => "3.5.0", # This is wrapper for reline. We don't warn for this. }.freeze - SINCE_FAST_PATH = SINCE.transform_keys { |g| g.sub(/\A.*\-/, "") }.freeze - EXACT = { "kconv" => "nkf", }.freeze @@ -142,7 +140,7 @@ module Gem::BUNDLED_GEMS # :nodoc: end else name = feature.sub(LIBEXT, "") - return unless SINCE_FAST_PATH[name] + return unless SINCE[name] end return if specs.include?(name) -- cgit v1.2.3