Remove unused hasPendingTasks methods