remove unused constants/methods from hardware.rb

in homebrew-fork.
Merge pull request #8435 from rolandwalker/strip_homebrew_hardware

remove unused constants/methods from hardware.rb