private static void deleteBackups(final List<File> files, final int count) {
		if (count >= 0) {
			for (int i = files.size() - Math.max(0, files.size() - count); i < files.size(); ++i) {
				if (!files.get(i).delete()) {
					InternalLogger.log(Level.WARN, "Failed to delete log file '" + files.get(i).getAbsolutePath() + "'");
				}
			}
		}
	}
private static void deleteBackups ( final List < File > files , final int count ) { if ( count >= 0 ) { for ( int i = files . size ( ) - Math . max ( 0 , files . size ( ) - count ) ; i < files . size ( ) ; ++ i ) { if ( ! files . get ( i ) . delete ( ) ) { InternalLogger . log ( Level . WARN , "Failed to delete log file '" + files . get ( i ) . getAbsolutePath ( ) + "'" ) ; } } } }
Deletes old log files.

@param files
All existing log files
@param count
Number of log files to keep