TaskService remove unused code