command handler: drop unused code (no functional change)

(integrated from trunk branch change 58c880c by Todd Whiteman <toddw@activestate.com>)