From cdd1d675a7bba5693c63656bec5a32166a8279d6 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sun, 10 Oct 2010 20:57:33 -0700 Subject: [PATCH] Remove old tcp module --- lib/tcp.js | 11 ----------- src/node.cc | 1 - 2 files changed, 12 deletions(-) delete mode 100644 lib/tcp.js diff --git a/lib/tcp.js b/lib/tcp.js deleted file mode 100644 index 64080be87b..0000000000 --- a/lib/tcp.js +++ /dev/null @@ -1,11 +0,0 @@ -var net = require('net'); -var sys = require('sys'); - -var warning; -if (!warning) { - warning = "The 'tcp' module is now called 'net'. Otherwise it should have a similar interface."; - sys.error(warning); -} - -exports.createServer = net.createServer; -exports.createConnection = net.createConnection; diff --git a/src/node.cc b/src/node.cc index 99252f906c..66800bf300 100644 --- a/src/node.cc +++ b/src/node.cc @@ -1514,7 +1514,6 @@ static Handle Binding(const Arguments& args) { exports->Set(String::New("repl"), String::New(native_repl)); exports->Set(String::New("readline"), String::New(native_readline)); exports->Set(String::New("sys"), String::New(native_sys)); - exports->Set(String::New("tcp"), String::New(native_tcp)); exports->Set(String::New("url"), String::New(native_url)); exports->Set(String::New("utils"), String::New(native_utils)); exports->Set(String::New("path"), String::New(native_path));