public synchronized void unregister(Object subscriber){
  List<Class<?>> subscribedTypes=typesBySubscriber.get(subscriber);
  if (subscribedTypes != null) {
    for (    Class<?> eventType : subscribedTypes) {
      unubscribeByEventType(subscriber,eventType);
    }
    typesBySubscriber.remove(subscriber);
  }
 else {
    Log.w(TAG,"Subscriber to unregister was not registered before: " + subscriber.getClass());
  }
}

public synchronized void unregister ( Object subscriber ) { List < Class < ? > > subscribedTypes = typesBySubscriber . get ( subscriber ) ; if ( subscribedTypes != null ) { for ( Class < ? > eventType : subscribedTypes ) { unubscribeByEventType ( subscriber , eventType ) ; } typesBySubscriber . remove ( subscriber ) ; } else { Log . w ( TAG , "Subscriber to unregister was not registered before: " + subscriber . getClass ( ) ) ; } }
unregisters the given subscriber from all event classes .
