From e5be21dfbf1a9f4395cf71fa2918d402ba5f3a61 Mon Sep 17 00:00:00 2001 From: Marc Bennewitz Date: Tue, 10 Nov 2015 22:42:18 +0100 Subject: [PATCH] removed unused internal function Filesystem::readInfoFile --- src/Storage/Adapter/Filesystem.php | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/src/Storage/Adapter/Filesystem.php b/src/Storage/Adapter/Filesystem.php index f17d40411..778d1a6ff 100644 --- a/src/Storage/Adapter/Filesystem.php +++ b/src/Storage/Adapter/Filesystem.php @@ -1274,36 +1274,6 @@ protected function getFileSpec($normalizedKey) return $this->lastFileSpec; } - /** - * Read info file - * - * @param string $file - * @param bool $nonBlocking Don't block script if file is locked - * @param bool $wouldblock The optional argument is set to TRUE if the lock would block - * @return array|bool The info array or false if file wasn't found - * @throws Exception\RuntimeException - */ - protected function readInfoFile($file, $nonBlocking = false, & $wouldblock = null) - { - if (!file_exists($file)) { - return false; - } - - $content = $this->getFileContent($file, $nonBlocking, $wouldblock); - if ($nonBlocking && $wouldblock) { - return false; - } - - ErrorHandler::start(); - $ifo = unserialize($content); - $err = ErrorHandler::stop(); - if (!is_array($ifo)) { - throw new Exception\RuntimeException("Corrupted info file '{$file}'", 0, $err); - } - - return $ifo; - } - /** * Read a complete file *