aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/os
diff options
context:
space:
mode:
authorMike McQuaid2016-05-10 08:19:48 +0100
committerMike McQuaid2016-05-10 08:19:48 +0100
commit5c1f463ac0f1ac8b3dffc5d235071f9759aa5633 (patch)
tree91dece0c80d84b2f7398356cc8d02d2156ae0776 /Library/Homebrew/os
parent500f9eada854c1939bf9a0caf94085214c9399b0 (diff)
downloadbrew-5c1f463ac0f1ac8b3dffc5d235071f9759aa5633.tar.bz2
Move more methods to DevelopmentTools.
Closes #1028.
Diffstat (limited to 'Library/Homebrew/os')
-rw-r--r--Library/Homebrew/os/mac.rb15
1 files changed, 0 insertions, 15 deletions
diff --git a/Library/Homebrew/os/mac.rb b/Library/Homebrew/os/mac.rb
index 31469dfdd..5d2447c8d 100644
--- a/Library/Homebrew/os/mac.rb
+++ b/Library/Homebrew/os/mac.rb
@@ -109,21 +109,6 @@ module OS
s.path unless s.nil?
end
- def non_apple_gcc_version(cc)
- (@non_apple_gcc_version ||= {}).fetch(cc) do
- path = HOMEBREW_PREFIX.join("opt", "gcc", "bin", cc)
- path = DevelopmentTools.locate(cc) unless path.exist?
- version = `#{path} --version`[/gcc(?:-\d(?:\.\d)? \(.+\))? (\d\.\d\.\d)/, 1] if path
- @non_apple_gcc_version[cc] = version
- end
- end
-
- def clear_version_cache
- @gcc_40_build_version = @gcc_42_build_version = @llvm_build_version = nil
- @clang_version = @clang_build_version = nil
- @non_apple_gcc_version = {}
- end
-
# See these issues for some history:
# https://github.com/Homebrew/legacy-homebrew/issues/13
# https://github.com/Homebrew/legacy-homebrew/issues/41