public void removeWatchedDirectory(final EventDispatcher pDispatcher,
                                       final WatchedDirectory pWatchedDirectory,
                                       final Collection<Directory> pPotentialSubDirs) {
        // Now, the key can be safely removed
        if (canBeRemoved(pWatchedDirectory)) {
            informDiscardAll(pDispatcher, pWatchedDirectory);
            discardResourcesOfRemovedWatchedDirectory(pWatchedDirectory, pDispatcher, this, pPotentialSubDirs);
            remove(pWatchedDirectory);
        }
    }
public void removeWatchedDirectory ( final EventDispatcher pDispatcher , final WatchedDirectory pWatchedDirectory , final Collection < Directory > pPotentialSubDirs ) { if ( canBeRemoved ( pWatchedDirectory ) ) { informDiscardAll ( pDispatcher , pWatchedDirectory ) ; discardResourcesOfRemovedWatchedDirectory ( pWatchedDirectory , pDispatcher , this , pPotentialSubDirs ) ; remove ( pWatchedDirectory ) ; } }
Removes the watched-directory specified from this directory instance and informs
the listeners specified through their {@link PathChangeListener#discard(DispatchKey)}. If no such
watched-directory is registered nothing happens.

@param pWatchedDirectory Directory-key to be removed, must be not {@code null}