Remove unused method.

This commit is contained in:
Markus Reiter 2024-04-26 12:34:50 +02:00
parent b0c4202954
commit 7c8c75aa37
No known key found for this signature in database
GPG Key ID: 245293B51702655B
2 changed files with 0 additions and 12 deletions

View File

@ -316,12 +316,6 @@ module SharedEnvExtension
sig { void } sig { void }
def permit_arch_flags; end def permit_arch_flags; end
# @private
sig { params(cc: T.any(Symbol, String)).returns(T::Boolean) }
def compiler_any_clang?(cc = compiler)
%w[clang llvm_clang].include?(cc.to_s)
end
private private
sig { params(_flags: T::Array[String], _map: T::Hash[Symbol, String]).void } sig { params(_flags: T::Array[String], _map: T::Hash[Symbol, String]).void }

View File

@ -164,12 +164,6 @@ RSpec.describe "ENV" do
expect(subject["FOO"]).to eq "bar" expect(subject["FOO"]).to eq "bar"
end end
end end
describe "#compiler_any_clang?" do
it "returns true for llvm_clang" do
expect(subject.compiler_any_clang?(:llvm_clang)).to be true
end
end
end end
describe Stdenv do describe Stdenv do