WordPress at a glance
function is not described

Automattic\Jetpack\Autoloader

AutoloadGenerator::removeLegacyFiles() private WC 1.0

Removes all of the legacy autoloader files so they don't cause any problems.

{} It's a method of the class: AutoloadGenerator{}

No Hooks.

Return

null. Nothing.

Usage

// private - for code of main (parent) class only
$result = $this->removeLegacyFiles( $outDir );
$outDir(string) (required)
The directory legacy files are written to.

Code of AutoloadGenerator::removeLegacyFiles() WC 5.3.0

<?php
private function removeLegacyFiles( $outDir ) {
	$files = array(
		'autoload_functions.php',
		'class-autoloader-handler.php',
		'class-classes-handler.php',
		'class-files-handler.php',
		'class-plugins-handler.php',
		'class-version-selector.php',
	);
	foreach ( $files as $file ) {
		$this->filesystem->remove( $outDir . '/' . $file );
	}
}