Merge pull request #12036 from Bo98/extract-compat

dev-cmd/extract: remove old DependencyCollector::Compat handling
This commit is contained in:
Mike McQuaid 2021-09-14 10:58:08 +01:00 committed by GitHub
commit 6139e36731
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 17 deletions

View File

@ -28,13 +28,6 @@ def with_monkey_patch
define_method(:parse_symbol_spec) { |*| }
end
if defined?(DependencyCollector::Compat)
DependencyCollector::Compat.class_eval do
alias_method :old_parse_string_spec, :parse_string_spec if method_defined?(:parse_string_spec)
define_method(:parse_string_spec) { |*| }
end
end
yield
ensure
BottleSpecification.class_eval do
@ -64,15 +57,6 @@ ensure
undef :old_parse_symbol_spec
end
end
if defined?(DependencyCollector::Compat)
DependencyCollector::Compat.class_eval do
if method_defined?(:old_parse_string_spec)
alias_method :parse_string_spec, :old_parse_string_spec
undef :old_parse_string_spec
end
end
end
end
module Homebrew

View File

@ -3,7 +3,6 @@
# typed: strong
module ::StackProf; end
module DependencyCollector::Compat; end
module T::InterfaceWrapper::Helpers; end
module T::Private::Abstract::Hooks; end
module T::Private::Methods::MethodHooks; end