public void removeListener(AnimEventListener listener) {
        if (!listeners.remove(listener)) {
            throw new IllegalArgumentException("The given listener is not "
                    + "registered at this AnimControl");
        }
    }
Removes the given listener from listening to events.

@param listener the listener to remove
@see AnimControl#addListener(com.jme3.animation.AnimEventListener)
jme3-core/src/main/java/com/jme3/animation/AnimControl.java