From 488b6fc4a4439f620f2005892e46e30f6bf202a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Schro=CC=88der?= Date: Fri, 20 Jun 2014 15:13:11 +0200 Subject: [PATCH] deleted unused methods --- application/core/Files/FileUtil.php | 30 ----------------------------- 1 file changed, 30 deletions(-) diff --git a/application/core/Files/FileUtil.php b/application/core/Files/FileUtil.php index 5ca15caf..eaf31e03 100644 --- a/application/core/Files/FileUtil.php +++ b/application/core/Files/FileUtil.php @@ -158,36 +158,6 @@ abstract class FileUtil { 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 *