From 174d8c09410ca0b1706595bd18e3fd698f3779b9 Mon Sep 17 00:00:00 2001 From: Frode Petterson Date: Mon, 25 Apr 2016 14:32:16 +0200 Subject: [PATCH] Revert "Added function for reading file contents" This reverts commit e324e298b9d41b8baa7e387004e8447a9ca9b64f. --- h5p-default-storage.class.php | 10 ---------- h5p-file-storage.interface.php | 8 -------- 2 files changed, 18 deletions(-) diff --git a/h5p-default-storage.class.php b/h5p-default-storage.class.php index 9f11f1c..5b8ffeb 100644 --- a/h5p-default-storage.class.php +++ b/h5p-default-storage.class.php @@ -247,16 +247,6 @@ class H5PDefaultStorage implements \H5PFileStorage { } } - /** - * Read file content of given file and then return it. - * - * @param string $file_path - * @return string - */ - public function getContent($file_path) { - return file_get_contents($this->path . $file_path); - } - /** * Recursive function for copying directories. * diff --git a/h5p-file-storage.interface.php b/h5p-file-storage.interface.php index b75625e..dfaa67a 100644 --- a/h5p-file-storage.interface.php +++ b/h5p-file-storage.interface.php @@ -117,12 +117,4 @@ interface H5PFileStorage { * The hash keys of removed files */ public function deleteCachedAssets($keys); - - /** - * Read file content of given file and then return it. - * - * @param string $file_path - * @return string contents - */ - public function getContent($file_path); }