summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-04-30 15:49:38 -0700
committerTim Smith <tsmith84@gmail.com>2020-04-30 15:49:38 -0700
commit1ce08788652f192047b5e64ed2c4c3e9674a42cf (patch)
tree27392bd752819c48e78cfc2004f260f238d739d0
parente047b7b4dea7096844048e5a85230dfba53e23f0 (diff)
downloadchef-1ce08788652f192047b5e64ed2c4c3e9674a42cf.tar.gz
Remove an unused spec helper
The code this was used with is long gone Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--spec/support/platform_helpers.rb13
1 files changed, 0 insertions, 13 deletions
diff --git a/spec/support/platform_helpers.rb b/spec/support/platform_helpers.rb
index 0e98fce621..1d0f8fa2b6 100644
--- a/spec/support/platform_helpers.rb
+++ b/spec/support/platform_helpers.rb
@@ -95,19 +95,6 @@ def windows_user_right?(right)
Chef::ReservedNames::Win32::Security.get_account_right(ENV["USERNAME"]).include?(right)
end
-def mac_osx_106?
- if File.exists? "/usr/bin/sw_vers"
- result = ShellHelpers.shell_out("/usr/bin/sw_vers")
- result.stdout.each_line do |line|
- if line =~ /^ProductVersion:\s10.6.*$/
- return true
- end
- end
- end
-
- false
-end
-
def mac_osx_1014?
if mac_osx?
ver = Chef::Version.new(ohai[:platform_version])