From 5e124c4a8acb1a4c883f654b5f7865204e7e8b7d Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Mon, 12 Feb 2024 17:36:44 +0100 Subject: fix(files): Remove dead code from files controllers Signed-off-by: Ferdinand Thiessen --- apps/files/lib/Controller/ViewController.php | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'apps/files/lib/Controller/ViewController.php') diff --git a/apps/files/lib/Controller/ViewController.php b/apps/files/lib/Controller/ViewController.php index 5172194dd8b..e7398cc21c2 100644 --- a/apps/files/lib/Controller/ViewController.php +++ b/apps/files/lib/Controller/ViewController.php @@ -115,26 +115,6 @@ class ViewController extends Controller { $this->viewConfig = $viewConfig; } - /** - * @param string $appName - * @param string $scriptName - * @return string - */ - protected function renderScript($appName, $scriptName) { - $content = ''; - $appPath = \OC_App::getAppPath($appName); - $scriptPath = $appPath . '/' . $scriptName; - if (file_exists($scriptPath)) { - // TODO: sanitize path / script name ? - ob_start(); - include $scriptPath; - $content = ob_get_contents(); - @ob_end_clean(); - } - - return $content; - } - /** * FIXME: Replace with non static code * -- cgit v1.2.3