protected void unbindCommand()

in src/main/java/org/apache/sling/cli/impl/CommandProcessor.java [88:98]


    protected void unbindCommand(Command cmd, Map<String, ?> props) {
        CommandWithProps commandWithProps = CommandWithProps.of(cmd, props);
        Set<CommandWithProps> bucket = commands.get(commandWithProps.group);
        if (bucket != null) {
            bucket.remove(commandWithProps);
            if (bucket.isEmpty()) {
                commands.remove(commandWithProps.group);
            }
        }

    }