Targeted #2345 Removed Unused Variables and Correct DocBlock with staging

Tracker item http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=32433&start=0