remove unused constants/methods from hardware.rb

in homebrew-fork.