static void remove(Runnable task){
  if (task == null) {
    throw new NullPointerException("task is null");
  }
  awtLock();
  try {
    if (timeoutTaskLog.isLoggable(PlatformLogger.Level.FINER)) {
      timeoutTaskLog.finer("Removing task " + task);
    }
    if (timeoutTasks == null) {
      if (timeoutTaskLog.isLoggable(PlatformLogger.Level.FINER)) {
        timeoutTaskLog.finer("Task is not scheduled");
      }
      return;
    }
    Collection values=timeoutTasks.values();
    Iterator iter=values.iterator();
    while (iter.hasNext()) {
      java.util.List list=(java.util.List)iter.next();
      boolean removed=false;
      if (list.contains(task)) {
        list.remove(task);
        if (list.isEmpty()) {
          iter.remove();
        }
        break;
      }
    }
  }
  finally {
    awtUnlock();
  }
}

static void remove ( Runnable task ) { if ( task == null ) { throw new NullPointerException ( "task is null" ) ; } awtLock ( ) ; try { if ( timeoutTaskLog . isLoggable ( PlatformLogger . Level . FINER ) ) { timeoutTaskLog . finer ( "Removing task " + task ) ; } if ( timeoutTasks == null ) { if ( timeoutTaskLog . isLoggable ( PlatformLogger . Level . FINER ) ) { timeoutTaskLog . finer ( "Task is not scheduled" ) ; } return ; } Collection values = timeoutTasks . values ( ) ; Iterator iter = values . iterator ( ) ; while ( iter . hasNext ( ) ) { java . util . List list = ( java . util . List ) iter . next ( ) ; boolean removed = false ; if ( list . contains ( task ) ) { list . remove ( task ) ; if ( list . isEmpty ( ) ) { iter . remove ( ) ; } break ; } } } finally { awtUnlock ( ) ; } }
removed the task from the list of waiting - to - be called tasks . if the task has been scheduled several times removes only first one .
