private void unubscribeByEventType(Object subscriber,Class<?> eventType){
  List<Subscription> subscriptions=subscriptionsByEventType.get(eventType);
  if (subscriptions != null) {
    int size=subscriptions.size();
    for (int i=0; i < size; i++) {
      if (subscriptions.get(i).subscriber == subscriber) {
        subscriptions.remove(i);
        i--;
        size--;
      }
    }
  }
}

private void unubscribeByEventType ( Object subscriber , Class < ? > eventType ) { List < Subscription > subscriptions = subscriptionsByEventType . get ( eventType ) ; if ( subscriptions != null ) { int size = subscriptions . size ( ) ; for ( int i = 0 ; i < size ; i ++ ) { if ( subscriptions . get ( i ) . subscriber == subscriber ) { subscriptions . remove ( i ) ; i -- ; size -- ; } } } }
only updates subscriptionsbyeventtype , not typesbysubscriber ! caller must update typesbysubscriber .
