Update platform.rb

remove dead code