Browse Source

Remove old tcp module

v0.7.4-release
Ryan Dahl 14 years ago
parent
commit
cdd1d675a7
  1. 11
      lib/tcp.js
  2. 1
      src/node.cc

11
lib/tcp.js

@ -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;

1
src/node.cc

@ -1514,7 +1514,6 @@ static Handle<Value> 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));

Loading…
Cancel
Save