Remove unused variable

This commit is contained in:
Jack Nagel 2013-06-12 17:25:00 -05:00
parent 630aa27c56
commit 0f314f9808
3 changed files with 3 additions and 4 deletions

View File

@ -140,7 +140,7 @@ class Build
if f.fails_with? ENV.compiler
begin
ENV.send CompilerSelector.new(f, ENV.compiler).compiler
ENV.send CompilerSelector.new(f).compiler
rescue CompilerSelectionError => e
raise e.message
end

View File

@ -35,9 +35,8 @@ class CompilerQueue
end
class CompilerSelector
def initialize(f, old_compiler)
def initialize(f)
@f = f
@old_compiler = old_compiler
@compilers = CompilerQueue.new
%w{clang llvm gcc gcc_4_0}.map(&:to_sym).each do |cc|
unless MacOS.send("#{cc}_build_version").nil?

View File

@ -27,7 +27,7 @@ class CompilerSelectorTests < Test::Unit::TestCase
end
def actual_cc
CompilerSelector.new(@f, @cc).compiler
CompilerSelector.new(@f).compiler
end
def test_all_compiler_failures