From 795014b17bd11046a99ad3949f7cccc6b3dfc55d Mon Sep 17 00:00:00 2001 From: Jack Allnutt Date: Thu, 1 Nov 2012 16:41:00 +0000 Subject: [PATCH] Remove uneeded require() of config module. Supplementary to commit b737610 --- server/client.js | 1 - server/httphandler.js | 3 +-- server/irc/connection.js | 3 +-- server/weblistener.js | 1 - 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/server/client.js b/server/client.js index f016012..b98d764 100755 --- a/server/client.js +++ b/server/client.js @@ -2,7 +2,6 @@ var util = require('util'), events = require('events'), crypto = require('crypto'), _ = require('underscore'), - config = require('./configuration.js'), IrcConnection = require('./irc/connection.js').IrcConnection, IrcCommands = require('./irc/commands.js'), ClientCommands = require('./clientcommands.js'); diff --git a/server/httphandler.js b/server/httphandler.js index 4c328a6..816cb37 100644 --- a/server/httphandler.js +++ b/server/httphandler.js @@ -1,6 +1,5 @@ var url = require('url'), - node_static = require ('node-static'), - config = require('./configuration.js'); + node_static = require ('node-static'); diff --git a/server/irc/connection.js b/server/irc/connection.js index 3d7c7ca..c68637d 100644 --- a/server/irc/connection.js +++ b/server/irc/connection.js @@ -2,8 +2,7 @@ var net = require('net'), tls = require('tls'), events = require('events'), util = require('util'), - _ = require('underscore'), - config = require('../configuration.js'); + _ = require('underscore'); var IrcConnection = function (hostname, port, ssl, nick, user, pass) { var that = this; diff --git a/server/weblistener.js b/server/weblistener.js index b61fc98..6337750 100644 --- a/server/weblistener.js +++ b/server/weblistener.js @@ -7,7 +7,6 @@ var ws = require('socket.io'), dns = require('dns'), url = require('url'), _ = require('underscore'), - config = require('./configuration.js'), Client = require('./client.js').Client, HttpHandler = require('./httphandler.js').HttpHandler, rehash = require('./rehash.js'); -- 2.25.1