public synchronized void removeListener(Object listener){
  if (listeners != null) {
    listeners.remove(listener);
  }
}

public synchronized void removeListener ( Object listener ) { if ( listeners != null ) { listeners . remove ( listener ) ; } }
remove the listener from the dispatcher
