Commit 470fcca9 authored by Jeremy Mikola's avatar Jeremy Mikola

Remove unused code in WritableStream

parent f807960d
...@@ -5,7 +5,6 @@ namespace MongoDB\GridFS; ...@@ -5,7 +5,6 @@ namespace MongoDB\GridFS;
use MongoDB\BSON\Binary; use MongoDB\BSON\Binary;
use MongoDB\BSON\ObjectId; use MongoDB\BSON\ObjectId;
use MongoDB\BSON\UTCDateTime; use MongoDB\BSON\UTCDateTime;
use MongoDB\Driver\Exception\Exception as DriverException;
use MongoDB\Exception\InvalidArgumentException; use MongoDB\Exception\InvalidArgumentException;
/** /**
...@@ -226,16 +225,4 @@ class WritableStream ...@@ -226,16 +225,4 @@ class WritableStream
$this->length += strlen($data); $this->length += strlen($data);
$this->chunkOffset++; $this->chunkOffset++;
} }
private function readChunk($source)
{
try {
$data = fread($source, $this->chunkSize);
} catch (DriverException $e) {
$this->abort();
throw $e;
}
return $data;
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment