Remove unused code from attack