Skip to content

Commit

Permalink
Merge pull request #9260 from Snuffleupagus/rm-JpegStream.getBytes
Browse files Browse the repository at this point in the history
Attempt to remove the special `JpegStream.getBytes` method and utilize the regular `DecodeStream` one instead
  • Loading branch information
timvandermeij authored Dec 10, 2017
2 parents af14620 + 84de1e9 commit 095c63c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/core/jpeg_stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
Expand Down

0 comments on commit 095c63c

Please sign in to comment.