deleted unused methods
This commit is contained in:
parent
f72568240b
commit
488b6fc4a4
@ -158,36 +158,6 @@ abstract class FileUtil {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Try to delete the given Plugin Files
|
|
||||||
*
|
|
||||||
* @param mixed $pluginFileNames
|
|
||||||
*/
|
|
||||||
public static function cleanPluginFiles($pluginFileNames) {
|
|
||||||
$pluginFileNames = (array)$pluginFileNames;
|
|
||||||
$fileNames = array();
|
|
||||||
foreach ($pluginFileNames as $pluginFileName) {
|
|
||||||
$fileName = 'plugins' . DIRECTORY_SEPARATOR . $pluginFileName;
|
|
||||||
array_push($fileNames, $fileName);
|
|
||||||
}
|
|
||||||
self::cleanFiles($fileNames);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Try to delete the given Files
|
|
||||||
*
|
|
||||||
* @param mixed $fileNames
|
|
||||||
*/
|
|
||||||
public static function cleanFiles($fileNames) {
|
|
||||||
$fileNames = (array)$fileNames;
|
|
||||||
foreach ($fileNames as $fileName) {
|
|
||||||
$filePath = ManiaControlDir . $fileName;
|
|
||||||
if (file_exists($filePath) && is_writeable($filePath)) {
|
|
||||||
unlink($filePath);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete old ManiaControl Log Files
|
* Delete old ManiaControl Log Files
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user