Skip to content

Commit 470fcca

Browse files
committed
Remove unused code in WritableStream
1 parent f807960 commit 470fcca

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/GridFS/WritableStream.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use MongoDB\BSON\Binary;
66
use MongoDB\BSON\ObjectId;
77
use MongoDB\BSON\UTCDateTime;
8-
use MongoDB\Driver\Exception\Exception as DriverException;
98
use MongoDB\Exception\InvalidArgumentException;
109

1110
/**
@@ -226,16 +225,4 @@ private function insertChunk($data)
226225
$this->length += strlen($data);
227226
$this->chunkOffset++;
228227
}
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-
}
241228
}

0 commit comments

Comments
 (0)