Make Map ruby 1.9 -w clean.

* remove unused variable
* fix shadowed variables
* remove dead code
* remove parameter ambiquity