dev-cmd/extract: remove old DependencyCollector::Compat handling
This commit is contained in:
parent
102be3e2b2
commit
ce679a8783
@ -28,13 +28,6 @@ def with_monkey_patch
|
|||||||
define_method(:parse_symbol_spec) { |*| }
|
define_method(:parse_symbol_spec) { |*| }
|
||||||
end
|
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
|
yield
|
||||||
ensure
|
ensure
|
||||||
BottleSpecification.class_eval do
|
BottleSpecification.class_eval do
|
||||||
@ -64,15 +57,6 @@ ensure
|
|||||||
undef :old_parse_symbol_spec
|
undef :old_parse_symbol_spec
|
||||||
end
|
end
|
||||||
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
|
end
|
||||||
|
|
||||||
module Homebrew
|
module Homebrew
|
||||||
|
|||||||
@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
# typed: strong
|
# typed: strong
|
||||||
module ::StackProf; end
|
module ::StackProf; end
|
||||||
module DependencyCollector::Compat; end
|
|
||||||
module T::InterfaceWrapper::Helpers; end
|
module T::InterfaceWrapper::Helpers; end
|
||||||
module T::Private::Abstract::Hooks; end
|
module T::Private::Abstract::Hooks; end
|
||||||
module T::Private::Methods::MethodHooks; end
|
module T::Private::Methods::MethodHooks; end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user