remove numerous unused methods from homebrew-fork

Covering files:
* extend/fileutils.rb
* hardware.rb
* utils.rb