aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-06-12 17:25:00 -0500
committerJack Nagel2013-06-12 17:25:29 -0500
commit0f314f9808fa86ede1abb1183e21d29ddff87fd0 (patch)
treef30c40fbff4739daf4a99711679a828d3f24e7ee /Library
parent630aa27c56c0094f391ba98929c395b6ea22bbc7 (diff)
downloadbrew-0f314f9808fa86ede1abb1183e21d29ddff87fd0.tar.bz2
Remove unused variable
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Homebrew/build.rb2
-rw-r--r--Library/Homebrew/compilers.rb3
-rw-r--r--Library/Homebrew/test/test_compiler_selector.rb2
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