Removed unused variable 'line_no' to fix the warning about it.