Deleted unused code on Task.h.