diff options
| author | Jack Nagel | 2013-06-12 17:25:00 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-06-12 17:25:29 -0500 |
| commit | 5f032942ed89cc56587041cab112c38866cc6025 (patch) | |
| tree | 602fa7c1bb3d6783635ac8b59c4e0601fe8c26d5 /Library | |
| parent | 3f5f21fbe027135f730cf444f0c37eff2460e3b4 (diff) | |
| download | homebrew-5f032942ed89cc56587041cab112c38866cc6025.tar.bz2 | |
Remove unused variable
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Homebrew/build.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/compilers.rb | 3 | ||||
| -rw-r--r-- | Library/Homebrew/test/test_compiler_selector.rb | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/Library/Homebrew/build.rb b/Library/Homebrew/build.rb index 461d71118..25e2b31c4 100755 --- a/Library/Homebrew/build.rb +++ b/Library/Homebrew/build.rb @@ -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 diff --git a/Library/Homebrew/compilers.rb b/Library/Homebrew/compilers.rb index 80826237a..3aaaecbc8 100644 --- a/Library/Homebrew/compilers.rb +++ b/Library/Homebrew/compilers.rb @@ -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? diff --git a/Library/Homebrew/test/test_compiler_selector.rb b/Library/Homebrew/test/test_compiler_selector.rb index 4e104a271..17c3b0449 100644 --- a/Library/Homebrew/test/test_compiler_selector.rb +++ b/Library/Homebrew/test/test_compiler_selector.rb @@ -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 |
