Remove code that is not valid in Ruby 1.9