Remove macOS implementation of #arch_compatible?

We don't really need this.
This commit is contained in:
Carlo Cabrera 2024-09-30 22:29:03 +08:00
parent 861d7b9087
commit 6329db9065
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0
2 changed files with 1 additions and 8 deletions

View File

@ -471,7 +471,7 @@ class Pathname
sig { params(_wanted_arch: Symbol).returns(T::Boolean) }
def arch_compatible?(_wanted_arch)
false
true
end
sig { returns(T::Array[String]) }

View File

@ -155,13 +155,6 @@ module MachOShim
arch == :ppc64
end
def arch_compatible?(wanted_arch)
return true unless mach_data.present?
return arch == wanted_arch unless universal?
archs.include?(wanted_arch)
end
def dylib?
mach_data.any? { |m| m.fetch(:type) == :dylib }
end