From 17e1e4ffc9447a4552fd76c524b57ae8ecf75e47 Mon Sep 17 00:00:00 2001 From: Peter Geiss Date: Sat, 16 Jan 2016 01:37:27 -0500 Subject: [PATCH] buffer: remove unnecessary TODO comments Refs: https://github.com/nodejs/node/issues/4642 PR-URL: https://github.com/nodejs/node/pull/4719 Reviewed-By: Colin Ihrig Reviewed-By: Rich Trott --- lib/buffer.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/buffer.js b/lib/buffer.js index 9c6b6c94162833..f784e05835b225 100644 --- a/lib/buffer.js +++ b/lib/buffer.js @@ -513,9 +513,6 @@ Buffer.prototype.set = internalUtil.deprecate(function set(offset, v) { return this[offset] = v; }, 'Buffer.set is deprecated. Use array indexes instead.'); - -// TODO(trevnorris): fix these checks to follow new standard -// write(string, offset = 0, length = buffer.length, encoding = 'utf8') var writeWarned = false; const writeMsg = 'Buffer.write(string, encoding, offset, length) is ' + 'deprecated. Use write(string[, offset[, length]]' + @@ -608,8 +605,6 @@ Buffer.prototype.toJSON = function() { }; -// TODO(trevnorris): currently works like Array.prototype.slice(), which -// doesn't follow the new standard for throwing on out of range indexes. Buffer.prototype.slice = function slice(start, end) { const buffer = this.subarray(start, end); Object.setPrototypeOf(buffer, Buffer.prototype);