Skip to content

Commit

Permalink
src: remove no-op HandleWrap::Initialize()
Browse files Browse the repository at this point in the history
It's never been used and we probably never will. Remove it.
  • Loading branch information
bnoordhuis committed Aug 7, 2013
1 parent 54a9ec4 commit d24decb
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 20 deletions.
2 changes: 0 additions & 2 deletions src/fs_event_wrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ FSEventWrap::~FSEventWrap() {


void FSEventWrap::Initialize(Handle<Object> target) {
HandleWrap::Initialize(target);

HandleScope scope(node_isolate);

Local<FunctionTemplate> t = FunctionTemplate::New(New);
Expand Down
5 changes: 0 additions & 5 deletions src/handle_wrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@ extern QUEUE handle_wrap_queue;
static Cached<String> close_sym;


void HandleWrap::Initialize(Handle<Object> target) {
/* Doesn't do anything at the moment. */
}


void HandleWrap::Ref(const FunctionCallbackInfo<Value>& args) {
HandleScope scope(node_isolate);

Expand Down
1 change: 0 additions & 1 deletion src/handle_wrap.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ namespace node {

class HandleWrap {
public:
static void Initialize(v8::Handle<v8::Object> target);
static void Close(const v8::FunctionCallbackInfo<v8::Value>& args);
static void Ref(const v8::FunctionCallbackInfo<v8::Value>& args);
static void Unref(const v8::FunctionCallbackInfo<v8::Value>& args);
Expand Down
2 changes: 0 additions & 2 deletions src/process_wrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ class ProcessWrap : public HandleWrap {
static void Initialize(Handle<Object> target) {
HandleScope scope(node_isolate);

HandleWrap::Initialize(target);

Local<FunctionTemplate> constructor = FunctionTemplate::New(New);
constructor->InstanceTemplate()->SetInternalFieldCount(1);
constructor->SetClassName(String::NewSymbol("Process"));
Expand Down
2 changes: 0 additions & 2 deletions src/signal_wrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ class SignalWrap : public HandleWrap {
static void Initialize(Handle<Object> target) {
HandleScope scope(node_isolate);

HandleWrap::Initialize(target);

Local<FunctionTemplate> constructor = FunctionTemplate::New(New);
constructor->InstanceTemplate()->SetInternalFieldCount(1);
constructor->SetClassName(String::NewSymbol("Signal"));
Expand Down
3 changes: 0 additions & 3 deletions src/stream_wrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@ void StreamWrap::Initialize(Handle<Object> target) {
initialized = true;

HandleScope scope(node_isolate);

HandleWrap::Initialize(target);

buffer_sym = String::New("buffer");
bytes_sym = String::New("bytes");
write_queue_size_sym = String::New("writeQueueSize");
Expand Down
1 change: 0 additions & 1 deletion src/tcp_wrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ Local<Object> TCPWrap::Instantiate() {


void TCPWrap::Initialize(Handle<Object> target) {
HandleWrap::Initialize(target);
StreamWrap::Initialize(target);

HandleScope scope(node_isolate);
Expand Down
2 changes: 0 additions & 2 deletions src/timer_wrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ class TimerWrap : public HandleWrap {
static void Initialize(Handle<Object> target) {
HandleScope scope(node_isolate);

HandleWrap::Initialize(target);

Local<FunctionTemplate> constructor = FunctionTemplate::New(New);
constructor->InstanceTemplate()->SetInternalFieldCount(1);
constructor->SetClassName(String::NewSymbol("Timer"));
Expand Down
2 changes: 0 additions & 2 deletions src/udp_wrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ UDPWrap::~UDPWrap() {


void UDPWrap::Initialize(Handle<Object> target) {
HandleWrap::Initialize(target);

HandleScope scope(node_isolate);

buffer_sym = String::New("buffer");
Expand Down

0 comments on commit d24decb

Please sign in to comment.