Skip to content

Commit

Permalink
Revert "Add Horde_Stream::read"
Browse files Browse the repository at this point in the history
This reverts commit 86ac160.

Conflicts:
	framework/Stream/lib/Horde/Stream.php
  • Loading branch information
slusarz committed Sep 30, 2013
1 parent 7ff5d4a commit 12973af
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions framework/Stream/lib/Horde/Stream.php
Expand Up @@ -123,24 +123,6 @@ public function add($data, $reset = false)
}
}

/**
* Read $length number of bytes from the stream, and move pointer.
*
* @param integer $length The number of bytes to read from the stream.
* @param boolean $rewind Should the stream pointer be moved to the
* start of the stream before reading?
*
* @return string The characters read from the stream.
* @since 1.4.0
*/
public function read($length, $rewind = false)
{
if ($rewind) {
$this->rewind();
}
return fread($this->stream, $length);
}

/**
* Returns the length of the data. Does not change the stream position.
*
Expand Down

0 comments on commit 12973af

Please sign in to comment.