ENH: removed obsolete code

@asmeurer