Skip to content

Commit fb615bd

Browse files
pgeissMyles Borins
authored andcommitted
buffer: remove unnecessary TODO comments
Refs: #4642 PR-URL: #4719 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent 91066b5 commit fb615bd

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

‎lib/buffer.js‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -513,9 +513,6 @@ Buffer.prototype.set = internalUtil.deprecate(function set(offset, v) {
513513
returnthis[offset]=v;
514514
},'Buffer.set is deprecated. Use array indexes instead.');
515515

516-
517-
// TODO(trevnorris): fix these checks to follow new standard
518-
// write(string, offset = 0, length = buffer.length, encoding = 'utf8')
519516
varwriteWarned=false;
520517
constwriteMsg='Buffer.write(string, encoding, offset, length) is '+
521518
'deprecated. Use write(string[, offset[, length]]'+
@@ -608,8 +605,6 @@ Buffer.prototype.toJSON = function() {
608605
};
609606

610607

611-
// TODO(trevnorris): currently works like Array.prototype.slice(), which
612-
// doesn't follow the new standard for throwing on out of range indexes.
613608
Buffer.prototype.slice=functionslice(start,end){
614609
constbuffer=this.subarray(start,end);
615610
Object.setPrototypeOf(buffer,Buffer.prototype);

0 commit comments

Comments
 (0)