Removed dead code set_wh