Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove net_legacy timers_legacy
  • Loading branch information
ry committed Oct 11, 2011
1 parent d2b8037 commit be0bb2d
Show file tree
Hide file tree
Showing 13 changed files with 2 additions and 3,544 deletions.
File renamed without changes.
1,215 changes: 0 additions & 1,215 deletions lib/net_legacy.js

This file was deleted.

File renamed without changes.
224 changes: 0 additions & 224 deletions lib/timers_legacy.js

This file was deleted.

9 changes: 2 additions & 7 deletions node.gyp
Expand Up @@ -30,8 +30,7 @@
'lib/http.js',
'lib/https.js',
'lib/module.js',
'lib/net_legacy.js',
'lib/net_uv.js',
'lib/net.js',
'lib/os.js',
'lib/path.js',
'lib/punycode.js',
Expand All @@ -41,8 +40,7 @@
'lib/stream.js',
'lib/string_decoder.js',
'lib/sys.js',
'lib/timers_legacy.js',
'lib/timers_uv.js',
'lib/timers.js',
'lib/tls.js',
'lib/tty_legacy.js',
'lib/tty_posix.js',
Expand Down Expand Up @@ -112,7 +110,6 @@
'src/node_file.h',
'src/node_http_parser.h',
'src/node_javascript.h',
'src/node_net.h',
'src/node_os.h',
'src/node_root_certs.h',
'src/node_script.h',
Expand Down Expand Up @@ -174,13 +171,11 @@
'defines': [ '__POSIX__' ],
'sources': [
'src/node_cares.cc',
'src/node_net.cc',
'src/node_signal_watcher.cc',
'src/node_stat_watcher.cc',
'src/node_io_watcher.cc',
'src/node_stdio.cc',
'src/node_child_process.cc',
'src/node_timer.cc'
]
}],
[ 'OS=="mac"', {
Expand Down
9 changes: 0 additions & 9 deletions src/node.cc
Expand Up @@ -77,14 +77,12 @@ extern "C" {
#ifdef __POSIX__
# include <node_io_watcher.h>
#endif
#include <node_net.h>
#include <node_cares.h>
#include <node_file.h>
#include <node_http_parser.h>
#ifdef __POSIX__
# include <node_signal_watcher.h>
# include <node_stat_watcher.h>
# include <node_timer.h>
#endif
#if !defined(_MSC_VER)
#include <node_child_process.h>
Expand Down Expand Up @@ -1902,13 +1900,6 @@ static Handle<Value> Binding(const Arguments& args) {
binding_cache->Set(module, exports);
#endif

} else if (!strcmp(*module_v, "timer")) {
#ifdef __POSIX__
exports = Object::New();
Timer::Initialize(exports);
binding_cache->Set(module, exports);

#endif
} else if (!strcmp(*module_v, "natives")) {
exports = Object::New();
DefineJavaScript(exports);
Expand Down
6 changes: 0 additions & 6 deletions src/node.js
Expand Up @@ -458,19 +458,13 @@
// backend.
function translateId(id) {
switch (id) {
case 'net':
return process.features.uv ? 'net_uv' : 'net_legacy';

case 'tty':
return process.features.uv ? 'tty_uv' : 'tty_legacy';

case 'child_process':
return process.features.uv ? 'child_process_uv' :
'child_process_legacy';

case 'timers':
return process.features.uv ? 'timers_uv' : 'timers_legacy';

case 'dgram':
return process.features.uv ? 'dgram_uv' : 'dgram_legacy';

Expand Down
3 changes: 0 additions & 3 deletions src/node_extensions.h
Expand Up @@ -31,9 +31,6 @@ NODE_EXT_LIST_ITEM(node_crypto)
#endif
NODE_EXT_LIST_ITEM(node_evals)
NODE_EXT_LIST_ITEM(node_fs)
#ifdef __POSIX__
NODE_EXT_LIST_ITEM(node_net)
#endif
NODE_EXT_LIST_ITEM(node_http_parser)
#ifdef __POSIX__
NODE_EXT_LIST_ITEM(node_signal_watcher)
Expand Down

0 comments on commit be0bb2d

Please sign in to comment.