remove some unused methods from homebrew-fork `os/mac.rb`