Warning removed unused variable task_name

warning: assigned but unused variable - task_name