Merge pull request #12036 from Bo98/extract-compat
dev-cmd/extract: remove old DependencyCollector::Compat handling
This commit is contained in:
commit
6139e36731
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user