public synchronized void removeFile(String fileName){
  for (  LogIndexEntry entry : index) {
    if (fileName.equals(entry.fileName)) {
      index.remove(entry);
      logger.info("Removed file from disk log index: " + fileName);
      return;
    }
  }
  logger.warn("Attempt to remove non-existent file from disk log index: " + fileName);
}

public synchronized void removeFile ( String fileName ) { for ( LogIndexEntry entry : index ) { if ( fileName . equals ( entry . fileName ) ) { index . remove ( entry ) ; logger . info ( "Removed file from disk log index: " + fileName ) ; return ; } } logger . warn ( "Attempt to remove non-existent file from disk log index: " + fileName ) ; }
remove a file from the index .
