remove dead code in resource.rb