A free open source IT asset/license management system
Removed unused showOrDownloadFile() method
snipec89e14ae52ba
diff --git a/app/Helpers/StorageHelper.php b/app/Helpers/StorageHelper.phpindex afca590f80..477e57c214 100644--- a/app/Helpers/StorageHelper.php+++ b/app/Helpers/StorageHelper.php@@ -120,32 +120,4 @@ class StorageHelper}- /**- * Decide whether to show the file inline or download it.- */- public static function showOrDownloadFile($file, $filename)- {-- $headers = [];-- if (request('inline') == 'true') {-- $headers = [- 'Content-Disposition' => 'inline',- ];-- // This is NOT allowed as inline - force it to be displayed as text in the browser- if (self::allowSafeInline($file) != true) {- $headers = array_merge($headers, ['Content-Type' => 'text/plain']);- }- }-- // Everything else seems okay, but the file doesn't exist on the server.- if (Storage::missing($file)) {- throw new FileNotFoundException;- }-- return Storage::download($file, $filename, $headers);-- }}