From: Roland Haeder Date: Wed, 18 Mar 2015 00:36:17 +0000 (+0100) Subject: More cleanups of public closeFile() method as it is private now and shall only X-Git-Url: https://git.mxchange.org/?p=core.git;a=commitdiff_plain;h=a1a6fe495d2e61dee317af1b45ee6821eb0027e5;ds=sidebyside More cleanups of public closeFile() method as it is private now and shall only be called by the destructor. Signed-off-by: Roland Häder --- diff --git a/inc/classes/interfaces/block/class_Block.php b/inc/classes/interfaces/block/class_Block.php index 45dad992..32cad910 100644 --- a/inc/classes/interfaces/block/class_Block.php +++ b/inc/classes/interfaces/block/class_Block.php @@ -36,16 +36,6 @@ interface Block extends FrameworkInterface { */ function flushFileHeader (); - /** - * Close a file source and set it's instance to null and the file name - * to empty. - * - * @return void - * @throws NullPointerException If the file pointer instance is not set by setPointer() - * @throws InvalidResourceException If there is being set - */ - function closeFile (); - /** * Determines whether the EOF has been reached * diff --git a/inc/classes/interfaces/io/class_FilePointer.php b/inc/classes/interfaces/io/class_FilePointer.php index a12d7427..20a3c375 100644 --- a/inc/classes/interfaces/io/class_FilePointer.php +++ b/inc/classes/interfaces/io/class_FilePointer.php @@ -22,16 +22,6 @@ * along with this program. If not, see . */ interface FilePointer extends FrameworkInterface { - /** - * Close a file source and set it's instance to null and the file name - * to empty. - * - * @return void - * @throws NullPointerException If the file pointer instance is not set by setPointer() - * @throws InvalidResourceException If there is being set - */ - function closeFile (); - /** * Getter for the file pointer * diff --git a/inc/classes/main/index/class_BaseIndex.php b/inc/classes/main/index/class_BaseIndex.php index 7a4b9616..6dd651ca 100644 --- a/inc/classes/main/index/class_BaseIndex.php +++ b/inc/classes/main/index/class_BaseIndex.php @@ -190,17 +190,6 @@ class BaseIndex extends BaseFrameworkSystem { return $length; } - /** - * Close a file source and set it's instance to null and the file name - * to empty. - * - * @return void - * @throws UnsupportedOperationException If this method is called - */ - public function closeFile () { - throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION); - } - /** * Determines whether the EOF has been reached * diff --git a/inc/classes/main/stacker/file/class_BaseFileStack.php b/inc/classes/main/stacker/file/class_BaseFileStack.php index 9da9da44..81648d58 100644 --- a/inc/classes/main/stacker/file/class_BaseFileStack.php +++ b/inc/classes/main/stacker/file/class_BaseFileStack.php @@ -361,17 +361,6 @@ class BaseFileStack extends BaseStacker { throw new UnsupportedOperationException(array($this, __FUNCTION__, $this->getIteratorInstance()->getPointerInstance()), self::EXCEPTION_UNSPPORTED_OPERATION); } - /** - * Close a file source and set it's instance to null and the file name - * to empty. - * - * @return void - * @throws UnsupportedOperationException This method is not (and maybe never will be) supported - */ - public function closeFile () { - throw new UnsupportedOperationException(array($this, __FUNCTION__, $this->getIteratorInstance()->getPointerInstance()), self::EXCEPTION_UNSPPORTED_OPERATION); - } - /** * Determines whether the EOF has been reached *