public void removeDiscoveryListener(DiscoveryListener listener){
  listeners.remove(listener);
}

public void removeDiscoveryListener ( DiscoveryListener listener ) { listeners . remove ( listener ) ; }
removes a listener from the set of objects listening for discovery events . if the listener object input to this method does not exist in the set of listeners , then this method will take no action .
