Remove unnecessary parameter and log statement