Remove unused method
Merge pull request #8004 from mr-vinn/rm-task-method

Remove unused method