Removing usless code