public void removeDependentTask(Task<?> dependent) {
    if ((getChildTasks() != null) && (getChildTasks().contains(dependent))) {
      getChildTasks().remove(dependent);
      if ((dependent.getParentTasks() != null) && (dependent.getParentTasks().contains(this))) {
        dependent.getParentTasks().remove(this);
      }
    }
  }
Remove the dependent task.

@param dependent
         the task to remove
ql/src/java/org/apache/hadoop/hive/ql/exec/Task.java