haml/haml — pull request #542 by mattwildig (2012-05-23 22:43:15+00:00)
Title: Deprecate Ruby 1.8.6 compatibility methods.

I noticed a recent commit (341f8bf180785e91acae526f11e966326a88e1f7) introduced some “statement not reached’ warnings.

It looks like these methods were only there to cater for 1.8.6, which is no longer used, so as well as remove the unreachable code I’ve marked them as deprecated.

(the real commit message is below)

`flatten`, `set_hash` and `set_eql?` in `Util` are only used to fix
the corresponding methods in Ruby 1.8.6, which is no longer supported.

Mark these methods as deprecated, and issue a warning if they are used.

Also remove test for these methods - the tests only check that the
core/std-lib Ruby methods are working.

As far as I can tell, these methods are no longer used anywhere in the
Haml codebase - the tests were the only uses.