Remove macOS implementation of #arch_compatible?
We don't really need this.
This commit is contained in:
parent
861d7b9087
commit
6329db9065
@ -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]) }
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user