From 8f79169aef6cd447ff193616e49335473eeb15ba Mon Sep 17 00:00:00 2001 From: Tim Caswell Date: Wed, 28 Apr 2010 07:32:00 -0500 Subject: [PATCH] Remove node.* deprecation messages. --- src/node.js | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/node.js b/src/node.js index 1de5563..f080ef1 100644 --- a/src/node.js +++ b/src/node.js @@ -22,27 +22,9 @@ process.error = removed("process.error() has moved. Use require('sys') to bring process.watchFile = removed("process.watchFile() has moved to fs.watchFile()"); process.unwatchFile = removed("process.unwatchFile() has moved to fs.unwatchFile()"); process.mixin = removed('process.mixin() has been removed.'); - -GLOBAL.node = {}; - -node.createProcess = removed("node.createProcess() has been changed to process.createChildProcess() update your code"); process.createChildProcess = removed("childProcess API has changed. See doc/api.txt."); -node.exec = removed("process.exec() has moved. Use require('sys') to bring it back."); -node.inherits = removed("node.inherits() has moved. Use require('sys') to access it."); process.inherits = removed("process.inherits() has moved to sys.inherits."); -node.http = {}; -node.http.createServer = removed("node.http.createServer() has moved. Use require('http') to access it."); -node.http.createClient = removed("node.http.createClient() has moved. Use require('http') to access it."); - -node.tcp = {}; -node.tcp.createServer = removed("node.tcp.createServer() has moved. Use require('tcp') to access it."); -node.tcp.createConnection = removed("node.tcp.createConnection() has moved. Use require('tcp') to access it."); - -node.dns = {}; -node.dns.createConnection = removed("node.dns.createConnection() has moved. Use require('dns') to access it."); - - process.assert = function (x, msg) { if (!(x)) throw new Error(msg || "assertion error"); }; -- 2.7.4