dev-cmd/extract: remove old DependencyCollector::Compat handling

This commit is contained in:
Bo Anderson 2021-09-11 00:19:31 +01:00
parent 102be3e2b2
commit ce679a8783
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65
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