Removed obsolete task state check functions.