TST: remove redundant code