Remove code that wasn't being used