deleted unused methods

This commit is contained in:
Steffen Schröder 2014-06-20 15:13:11 +02:00
parent f72568240b
commit 488b6fc4a4

View File

@ -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
* *