Remove useless generated code