diff --git a/lib/dgram.js b/lib/dgram.js index d374d1d131..5ec5e64b56 100644 --- a/lib/dgram.js +++ b/lib/dgram.js @@ -3,7 +3,6 @@ var fs = require("fs"); var events = require("events"); var dns = require('dns'); -var Buffer = require('buffer').Buffer; var IOWatcher = process.binding('io_watcher').IOWatcher; var binding = process.binding('net'); var socket = binding.socket; diff --git a/lib/fs.js b/lib/fs.js index 24259c02fb..e4360ecf7f 100644 --- a/lib/fs.js +++ b/lib/fs.js @@ -1,6 +1,5 @@ var sys = require('sys'); var events = require('events'); -var Buffer = require('buffer').Buffer; var binding = process.binding('fs'); var constants = process.binding('constants'); diff --git a/lib/http.js b/lib/http.js index e78bda71a0..81e2126c9d 100644 --- a/lib/http.js +++ b/lib/http.js @@ -10,7 +10,6 @@ if (debugLevel & 0x4) { var net = require('net'); var events = require('events'); -var Buffer = require('buffer').Buffer; var FreeList = require('freelist').FreeList; var HTTPParser = process.binding('http_parser').HTTPParser; diff --git a/lib/net.js b/lib/net.js index ced5ca771c..a9fae9df89 100644 --- a/lib/net.js +++ b/lib/net.js @@ -20,7 +20,6 @@ var binding = process.binding('net'); // represent buffer.used) that can be seeked around would be easier. I'm not // yet convinced that every use-case can be fit into that abstraction, so // waiting to implement it until I get more experience with this. -var Buffer = require('buffer').Buffer; var FreeList = require('freelist').FreeList; var IOWatcher = process.binding('io_watcher').IOWatcher; diff --git a/lib/readline.js b/lib/readline.js index e749717495..26c04cca40 100644 --- a/lib/readline.js +++ b/lib/readline.js @@ -7,8 +7,6 @@ var kHistorySize = 30; var kBufSize = 10*1024; - -var Buffer = require('buffer').Buffer; var sys = require('sys'); var inherits = require('sys').inherits; var EventEmitter = require('events').EventEmitter; diff --git a/lib/string_decoder.js b/lib/string_decoder.js index ca47dc5202..59be68c99f 100644 --- a/lib/string_decoder.js +++ b/lib/string_decoder.js @@ -1,5 +1,3 @@ -var Buffer = require('buffer').Buffer; - var StringDecoder = exports.StringDecoder = function (encoding) { this.encoding = (encoding || 'utf8').toLowerCase().replace(/[-_]/,''); if (this.encoding === 'utf8') {