code: public synchronized void removeGeoQueryEventListener(final GeoQueryDataEventListener listener) {
          if (!eventListeners.contains(listener)) {
              throw new IllegalArgumentException("Trying to remove listener that was removed or not added!");
          }
          eventListeners.remove(listener);
          if (!this.hasListeners()) {
              reset();
          }
      }
docs: Removes an event listener.
  
  @throws IllegalArgumentException If the listener was removed already or never added
  
  @param listener The listener to remove