void (DeletedPairsListener<T> listener) { if (myListeners != null) { if (myListeners.length == 1) { myListeners = null; } else { DeletedPairsListener<?>[] newListeners = new DeletedPairsListener[myListeners.length - 1]; int i = 0; for (DeletedPairsListener<?> myListener : myListeners) { if (myListener != listener) { newListeners[i++] = myListener; } } myListeners = newListeners; } } }