Dead code removal.

I think this group is commented out because they duplicate code already done in the main windows UI dialogue.