Skip to content

Commit 14061c6

Browse files
pgeissevanlucas
authored andcommitted
buffer: remove unnecessary TODO comments
Refs: #4642 PR-URL: #4719 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent 399db04 commit 14061c6

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lib/buffer.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -539,8 +539,6 @@ Buffer.prototype.set = internalUtil.deprecate(function set(offset, v) {
539539
}, 'Buffer.set is deprecated. Use array indexes instead.');
540540

541541

542-
// TODO(trevnorris): fix these checks to follow new standard
543-
// write(string, offset = 0, length = buffer.length, encoding = 'utf8')
544542
var writeWarned = false;
545543
const writeMsg = 'Buffer.write(string, encoding, offset, length) is ' +
546544
'deprecated. Use write(string[, offset[, length]]' +
@@ -633,8 +631,6 @@ Buffer.prototype.toJSON = function() {
633631
};
634632

635633

636-
// TODO(trevnorris): currently works like Array.prototype.slice(), which
637-
// doesn't follow the new standard for throwing on out of range indexes.
638634
Buffer.prototype.slice = function slice(start, end) {
639635
const buffer = this.subarray(start, end);
640636
Object.setPrototypeOf(buffer, Buffer.prototype);

0 commit comments

Comments
 (0)