diff options
| author | Mike McQuaid | 2017-04-22 16:28:07 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2017-04-22 16:28:07 +0100 |
| commit | ba3c46d24fe6423845cc5e827eb94b3427d75a10 (patch) | |
| tree | 12c6c401ff351c34c7fea3ec322e34814999e99c /Library/Homebrew/os/mac/xcode.rb | |
| parent | 206d6de845c9041bbbd4d955e56befb338295e96 (diff) | |
| download | brew-ba3c46d24fe6423845cc5e827eb94b3427d75a10.tar.bz2 | |
More deprecations.
Deprecate more methods. Internal APIs have been verified to be unused
elsewhere and removed. External APIs have had deprecation methods added.
Existing deprecations have been either upgraded to produce warnings or
no longer deprecated and the reasoning documented.
Diffstat (limited to 'Library/Homebrew/os/mac/xcode.rb')
| -rw-r--r-- | Library/Homebrew/os/mac/xcode.rb | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Library/Homebrew/os/mac/xcode.rb b/Library/Homebrew/os/mac/xcode.rb index 8934697cb..cac0dcc30 100644 --- a/Library/Homebrew/os/mac/xcode.rb +++ b/Library/Homebrew/os/mac/xcode.rb @@ -128,11 +128,10 @@ module OS end end - # The remaining logic provides a fake Xcode version for CLT-only - # systems. This behavior only exists because Homebrew used to assume - # Xcode.version would always be non-nil. This is deprecated, and will - # be removed in a future version. To remain compatible, guard usage of - # Xcode.version with an Xcode.installed? check. + # The remaining logic provides a fake Xcode version based on the + # installed CLT version. This is useful as they are packaged + # simultaneously so workarounds need to apply to both based on their + # comparable version. case (DevelopmentTools.clang_version.to_f * 10).to_i when 0 then "dunno" when 1..14 then "3.2.2" |
