From d24decb87ba736a33234713c1d824c9d05b48cce Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Wed, 7 Aug 2013 18:03:13 +0200 Subject: [PATCH] src: remove no-op HandleWrap::Initialize() It's never been used and we probably never will. Remove it. --- src/fs_event_wrap.cc | 2 -- src/handle_wrap.cc | 5 ----- src/handle_wrap.h | 1 - src/process_wrap.cc | 2 -- src/signal_wrap.cc | 2 -- src/stream_wrap.cc | 3 --- src/tcp_wrap.cc | 1 - src/timer_wrap.cc | 2 -- src/udp_wrap.cc | 2 -- 9 files changed, 20 deletions(-) diff --git a/src/fs_event_wrap.cc b/src/fs_event_wrap.cc index 3843f5d..b8d24c0 100644 --- a/src/fs_event_wrap.cc +++ b/src/fs_event_wrap.cc @@ -71,8 +71,6 @@ FSEventWrap::~FSEventWrap() { void FSEventWrap::Initialize(Handle target) { - HandleWrap::Initialize(target); - HandleScope scope(node_isolate); Local t = FunctionTemplate::New(New); diff --git a/src/handle_wrap.cc b/src/handle_wrap.cc index 38b53ed..1eb0dc5 100644 --- a/src/handle_wrap.cc +++ b/src/handle_wrap.cc @@ -38,11 +38,6 @@ extern QUEUE handle_wrap_queue; static Cached close_sym; -void HandleWrap::Initialize(Handle target) { - /* Doesn't do anything at the moment. */ -} - - void HandleWrap::Ref(const FunctionCallbackInfo& args) { HandleScope scope(node_isolate); diff --git a/src/handle_wrap.h b/src/handle_wrap.h index cbe7e32..f06f639 100644 --- a/src/handle_wrap.h +++ b/src/handle_wrap.h @@ -57,7 +57,6 @@ namespace node { class HandleWrap { public: - static void Initialize(v8::Handle target); static void Close(const v8::FunctionCallbackInfo& args); static void Ref(const v8::FunctionCallbackInfo& args); static void Unref(const v8::FunctionCallbackInfo& args); diff --git a/src/process_wrap.cc b/src/process_wrap.cc index b3671d9..344ac64 100644 --- a/src/process_wrap.cc +++ b/src/process_wrap.cc @@ -48,8 +48,6 @@ class ProcessWrap : public HandleWrap { static void Initialize(Handle target) { HandleScope scope(node_isolate); - HandleWrap::Initialize(target); - Local constructor = FunctionTemplate::New(New); constructor->InstanceTemplate()->SetInternalFieldCount(1); constructor->SetClassName(String::NewSymbol("Process")); diff --git a/src/signal_wrap.cc b/src/signal_wrap.cc index 3f5df4e..1c1c047 100644 --- a/src/signal_wrap.cc +++ b/src/signal_wrap.cc @@ -44,8 +44,6 @@ class SignalWrap : public HandleWrap { static void Initialize(Handle target) { HandleScope scope(node_isolate); - HandleWrap::Initialize(target); - Local constructor = FunctionTemplate::New(New); constructor->InstanceTemplate()->SetInternalFieldCount(1); constructor->SetClassName(String::NewSymbol("Signal")); diff --git a/src/stream_wrap.cc b/src/stream_wrap.cc index ea8aaec..7fddb82 100644 --- a/src/stream_wrap.cc +++ b/src/stream_wrap.cc @@ -63,9 +63,6 @@ void StreamWrap::Initialize(Handle 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"); diff --git a/src/tcp_wrap.cc b/src/tcp_wrap.cc index ad852de..4b9cb31 100644 --- a/src/tcp_wrap.cc +++ b/src/tcp_wrap.cc @@ -67,7 +67,6 @@ Local TCPWrap::Instantiate() { void TCPWrap::Initialize(Handle target) { - HandleWrap::Initialize(target); StreamWrap::Initialize(target); HandleScope scope(node_isolate); diff --git a/src/timer_wrap.cc b/src/timer_wrap.cc index 8ca3958..3ba1f19 100644 --- a/src/timer_wrap.cc +++ b/src/timer_wrap.cc @@ -42,8 +42,6 @@ class TimerWrap : public HandleWrap { static void Initialize(Handle target) { HandleScope scope(node_isolate); - HandleWrap::Initialize(target); - Local constructor = FunctionTemplate::New(New); constructor->InstanceTemplate()->SetInternalFieldCount(1); constructor->SetClassName(String::NewSymbol("Timer")); diff --git a/src/udp_wrap.cc b/src/udp_wrap.cc index 7a2334e..8b43438 100644 --- a/src/udp_wrap.cc +++ b/src/udp_wrap.cc @@ -66,8 +66,6 @@ UDPWrap::~UDPWrap() { void UDPWrap::Initialize(Handle target) { - HandleWrap::Initialize(target); - HandleScope scope(node_isolate); buffer_sym = String::New("buffer"); -- 2.7.4