diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-02-12 17:36:44 +0100 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-02-12 17:36:44 +0100 |
commit | 5e124c4a8acb1a4c883f654b5f7865204e7e8b7d (patch) | |
tree | b95443099c83078d4415a543a3054df99040d626 /apps/files/lib | |
parent | 919288603a6657ffb5d2461e02f82c1c157e07a9 (diff) | |
download | nextcloud-server-5e124c4a8acb1a4c883f654b5f7865204e7e8b7d.tar.gz nextcloud-server-5e124c4a8acb1a4c883f654b5f7865204e7e8b7d.zip |
fix(files): Remove dead code from files controllers
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps/files/lib')
-rw-r--r-- | apps/files/lib/Controller/ViewController.php | 20 |
1 files changed, 0 insertions, 20 deletions
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 @@ -116,26 +116,6 @@ class ViewController extends Controller { } /** - * @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 * * @return array |