Merge pull request #9260 from Snuffleupagus/rm-JpegStream.getBytes

Attempt to remove the special `JpegStream.getBytes` method and utilize the regular `DecodeStream` one instead
This commit is contained in:
Tim van der Meij 2017-12-10 16:50:50 +01:00 committed by GitHub
commit 095c63cc25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -100,11 +100,6 @@ let JpegStream = (function JpegStreamClosure() {
this.eof = true;
};
JpegStream.prototype.getBytes = function(length) {
this.readBlock();
return this.buffer;
};
JpegStream.prototype.getIR = function(forceDataSchema = false) {
return createObjectURL(this.bytes, 'image/jpeg', forceDataSchema);
};