public boolean removeByName ( String name ) { boolean found = false ; Iterator < CompilerInput > iter = inputs . iterator ( ) ; while ( iter . hasNext ( ) ) { CompilerInput file = iter . next ( ) ; if ( name . equals ( file . getName ( ) ) ) { iter . remove ( ) ; file . setModule ( null ) ; found = true ; } } return found ; }
Removes any input with the given name . Returns whether any were removed .