ENH remove spurious code