private void unregisterPatternFromMap(Map<Object, Map<Object, Pattern>> map, Object interest,
      Long clientID, Set keysUnregistered) {
    Map interestMap = map.get(clientID);
    if (interestMap != null) {
      Object obj = interestMap.remove(interest);
      if (obj != null) {
        keysUnregistered.add(interest);
      }
      if (interestMap.isEmpty()) {
        map.remove(clientID);
      }
    }
  }
Unregisters a client's interest

@param inputClientID The identity of the client that is losing interest
@param interest The key in which to unregister interest
@param interestType the type of uninterest
@return the keys unregistered, which may be null
geode-core/src/main/java/org/apache/geode/internal/cache/FilterProfile.java