data-collector/src/main/java/se/kth/depclean/experiments/tree/analysis/DependencyTreeAnalyzer.java
/**
     * Remove the direct dependencies for which all their children (direct and transitive) are unused.
     */
Remove the direct dependencies for which all their children (direct and transitive) are unused.
Remove the direct dependencies for which all their children ( direct and transitive ) are unused .
public void removeUnusedArtifacts() {
        for (int i = 0; i < rootNode.getChildNodes().size(); i++) {
            Node childNode = rootNode.getChildNode(i);
            if (canBeRemoved(childNode)) {
                countConflictsAvoided(childNode);
                rootNode.remove(childNode);
            }
        }
    }
public void removeUnusedArtifacts ( ) { for ( int i = 0 ; i < rootNode . getChildNodes ( ) . size ( ) ; i ++ ) { Node childNode = rootNode . getChildNode ( i ) ; if ( canBeRemoved ( childNode ) ) { countConflictsAvoided ( childNode ) ; rootNode . remove ( childNode ) ; } } }
Remove the direct dependencies for which all their children (direct and transitive) are unused.
Remove the direct dependencies for which all their children ( direct and transitive ) are unused .