removed unused code

break statements are never executed because of return, so they are useless and not needed.