diff --git a/index.js b/index.js index e36a5a7..6d61388 100644 --- a/index.js +++ b/index.js @@ -353,7 +353,6 @@ Buffer.isEncoding = function isEncoding (encoding) { case 'ascii': case 'binary': case 'base64': - case 'raw': case 'ucs2': case 'ucs-2': case 'utf16le': @@ -415,8 +414,6 @@ function byteLength (string, encoding) { switch (encoding) { case 'ascii': case 'binary': - case 'raw': - case 'raws': return len case 'utf8': case 'utf-8':