From fd649afb1fd38f1a2cb0d5f07b651d607864c1f8 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Fri, 27 Nov 2020 13:02:59 +0100 Subject: Remove the deprecated update.php * It was documented as deprecated. * The app code checker warned about it * It's been three years Signed-off-by: Christoph Wurst --- core/Command/App/CheckCode.php | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'core') diff --git a/core/Command/App/CheckCode.php b/core/Command/App/CheckCode.php index 40d632a1ad3..2480e1fa45d 100644 --- a/core/Command/App/CheckCode.php +++ b/core/Command/App/CheckCode.php @@ -157,8 +157,6 @@ class CheckCode extends Command implements CompletionAwareInterface { $errors = array_merge($errors, $schemaErrors['errors']); } - $this->analyseUpdateFile($appId, $output); - if (empty($errors)) { $output->writeln('App is compliant - awesome job!'); return 0; @@ -168,22 +166,6 @@ class CheckCode extends Command implements CompletionAwareInterface { } } - /** - * @param string $appId - * @param $output - */ - private function analyseUpdateFile($appId, OutputInterface $output) { - $appPath = \OC_App::getAppPath($appId); - if ($appPath === false) { - throw new \RuntimeException("No app with given id <$appId> known."); - } - - $updatePhp = $appPath . '/appinfo/update.php'; - if (file_exists($updatePhp)) { - $output->writeln("Deprecated file found: $updatePhp - please use repair steps"); - } - } - /** * @param string $optionName * @param CompletionContext $context -- cgit v1.2.3