Minor corrections

- Suppress warning message on Ruby 1.8.5
- Remove unnecessary code