remove numerous unused methods from homebrew-fork

Covering files:
* extend/fileutils.rb
* hardware.rb
* utils.rb
Merge pull request #8332 from rolandwalker/remove_homebrew_misc_methods

remove numerous unused methods from homebrew-fork