haml/haml — pull request #586 by mattwildig (2012-08-22 01:10:56+00:00)
Title: Remove unused variables warnings

I previously used what in hindsight looks like a rather dubious technique to avoid an unused variable warning (calling `to_s` on a string to “use” it). I also recently discovered a more reasonable looking technique to achieve the same (double assignment), which has been used in Rails among other places (I think https://github.com/rails/rails/blob/v3.2.8/activesupport/lib/active_support/callbacks.rb#L184-187 is the only current use of it).

This change swaps the former for the latter, and also uses the double assignment method to remove what I think is the last Haml warning (at least with the Rails 3.2 gemfile).

----

Use double assignment in preference to `to_s` call to avoid unused
variable warning in lib/haml/helper.rb.

Use same technique to remove same warning in
lib/haml/helpers/action_view_mods.rb.