Skip to content

Commit

Permalink
buffer: minor cleanup from rebase
Browse files Browse the repository at this point in the history
PR-URL: #2003
Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
  • Loading branch information
trevnorris authored and rvagg committed Aug 4, 2015
1 parent b625ab4 commit e5ada11
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions lib/internal/buffer_new.js
Original file line number Diff line number Diff line change
Expand Up @@ -457,16 +457,7 @@ Buffer.prototype.write = function(string, offset, length, encoding) {

// XXX legacy write(string, encoding, offset, length) - remove in v0.13
} else {
if (!writeWarned) {
if (process.throwDeprecation)
throw new Error(writeMsg);
else if (process.traceDeprecation)
console.trace(writeMsg);
else
console.error(writeMsg);
writeWarned = true;
}

writeWarned = internalUtil.printDeprecationMessage(writeMsg, writeWarned);
var swap = encoding;
encoding = offset;
offset = length >>> 0;
Expand Down

0 comments on commit e5ada11

Please sign in to comment.