aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
diff options
context:
space:
mode:
authorJack Nagel2014-05-13 12:50:30 -0500
committerJack Nagel2014-05-13 12:50:30 -0500
commitc03483b6a8f32e37ea59396327f29b737f4d266a (patch)
treeb864a12746e48befec2e4c2273a4d6813c4dfff8 /Library/Homebrew/extend
parent278d9dfdb45aad355e2258f35ed8068f93799692 (diff)
downloadbrew-c03483b6a8f32e37ea59396327f29b737f4d266a.tar.bz2
Remove legacy ENV accessor hack
Diffstat (limited to 'Library/Homebrew/extend')
-rw-r--r--Library/Homebrew/extend/ENV/super.rb17
1 files changed, 0 insertions, 17 deletions
diff --git a/Library/Homebrew/extend/ENV/super.rb b/Library/Homebrew/extend/ENV/super.rb
index c73c037d1..df5049757 100644
--- a/Library/Homebrew/extend/ENV/super.rb
+++ b/Library/Homebrew/extend/ENV/super.rb
@@ -20,23 +20,6 @@ module Superenv
def self.extended(base)
base.keg_only_deps = []
base.deps = []
-
- # Many formula assume that CFLAGS etc. will not be nil. This should be
- # a safe hack to prevent that exception cropping up. Main consequence of
- # this is that self['CFLAGS'] is never nil even when it is which can break
- # if checks, but we don't do such a check in our code. Redefinition must be
- # done on the singleton class, because in MRI all ENV methods are defined
- # on its singleton class, precluding the use of extend.
- class << base
- alias_method :"old_[]", :[]
- def [] key
- if has_key? key
- fetch(key)
- elsif %w{CPPFLAGS CFLAGS LDFLAGS}.include? key
- self[key] = ""
- end
- end
- end
end
def self.bin