We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f807960 commit 470fccaCopy full SHA for 470fcca
src/GridFS/WritableStream.php
@@ -5,7 +5,6 @@
5
use MongoDB\BSON\Binary;
6
use MongoDB\BSON\ObjectId;
7
use MongoDB\BSON\UTCDateTime;
8
-use MongoDB\Driver\Exception\Exception as DriverException;
9
use MongoDB\Exception\InvalidArgumentException;
10
11
/**
@@ -226,16 +225,4 @@ private function insertChunk($data)
226
225
$this->length += strlen($data);
227
$this->chunkOffset++;
228
}
229
-
230
- private function readChunk($source)
231
- {
232
- try {
233
- $data = fread($source, $this->chunkSize);
234
- } catch (DriverException $e) {
235
- $this->abort();
236
- throw $e;
237
- }
238
239
- return $data;
240
241
0 commit comments