From 05abb9ea6662655f363491074e5be52561eb965e Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Fri, 24 Nov 2017 10:50:50 +0100 Subject: [PATCH] Remove unused checkCode method Signed-off-by: Morris Jobke --- lib/private/Installer.php | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/lib/private/Installer.php b/lib/private/Installer.php index e754f28455..45bec26831 100644 --- a/lib/private/Installer.php +++ b/lib/private/Installer.php @@ -588,23 +588,6 @@ class Installer { return $info['id']; } - /** - * check the code of an app with some static code checks - * @param string $folder the folder of the app to check - * @return boolean true for app is o.k. and false for app is not o.k. - */ - public static function checkCode($folder) { - // is the code checker enabled? - if(!\OC::$server->getConfig()->getSystemValue('appcodechecker', false)) { - return true; - } - - $codeChecker = new CodeChecker(new PrivateCheck(new EmptyCheck())); - $errors = $codeChecker->analyseFolder(basename($folder), $folder); - - return empty($errors); - } - /** * @param string $script */