Remove unnecessary loop.
Fix warning: unused parameter.