WordPress at a glance
function is not described


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.


null. Nothing.


// 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

private function removeLegacyFiles( $outDir ) {
	$files = array(
	foreach ( $files as $file ) {
		$this->filesystem->remove( $outDir . '/' . $file );