]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/iterator/file/class_FileIterator.php
writeAtPosition() also belongs in OutputPointer classes.
[core.git] / inc / classes / main / iterator / file / class_FileIterator.php
index e73360746691268788d78cd90610ab29847ef394..f8fadbde41e3ab1ea5de5dcfc04c4014214a8a48 100644 (file)
@@ -112,21 +112,6 @@ class FileIterator extends BaseIterator implements SeekableWritableFileIterator
                return $this->getBlockInstance()->seek($seekPosition);
        }
 
-       /**
-        * Writes at given position by seeking to it.
-        *
-        * @param       $seekPosition   Seek position in file
-        * @param       $data                   Data to be written
-        * @return      void
-        */
-       public function writeAtPosition ($seekPosition, $data) {
-               // First seek to it
-               $this->seek($seekPosition);
-
-               // Then write the data at that position
-               $this->getBlockInstance()->writeToFile($data);
-       }
-
        /**
         * Size of file stack
         *