Remove code for Ruby version lower than 1.9.0.