Remove obsolete code from previous method