From 7a1a0a00557ae2fe63d8c8bb1210b8200f7db730 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Wed, 23 Dec 2015 01:15:44 -0800 Subject: [PATCH] lib: remove unused modules Some files in `lib` were using `require` to load modules that were subsequently not used in the file. This removes those `require` statements. PR-URL: https://github.com/nodejs/node/pull/4683 Reviewed-By: Myles Borins --- lib/_http_client.js | 1 - lib/os.js | 1 - 2 files changed, 2 deletions(-) diff --git a/lib/_http_client.js b/lib/_http_client.js index aef05eb8fa2299..db1db7bcc3ab60 100644 --- a/lib/_http_client.js +++ b/lib/_http_client.js @@ -3,7 +3,6 @@ const util = require('util'); const net = require('net'); const url = require('url'); -const EventEmitter = require('events'); const HTTPParser = process.binding('http_parser').HTTPParser; const assert = require('assert').ok; const common = require('_http_common'); diff --git a/lib/os.js b/lib/os.js index 2d537f53840a35..ddf7cee9d48791 100644 --- a/lib/os.js +++ b/lib/os.js @@ -1,7 +1,6 @@ 'use strict'; const binding = process.binding('os'); -const util = require('util'); const internalUtil = require('internal/util'); const isWindows = process.platform === 'win32';