From 43ef58005eea05eb4fe3a8287b5214d5f0a8b05a Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Sat, 6 Aug 2016 09:15:34 +0200 Subject: [PATCH] src: remove unused using decls PR-URL: https://github.com/nodejs/node/pull/7990 Reviewed-By: James M Snell Reviewed-By: Brian White Reviewed-By: Minwoo Jung Reviewed-By: Colin Ihrig Reviewed-By: Yorkie Liu --- src/cares_wrap.cc | 1 - src/debug-agent.cc | 1 - src/env.cc | 1 - src/inspector_agent.cc | 1 - src/node.cc | 1 - src/node_buffer.cc | 4 ---- src/node_contextify.cc | 2 -- src/node_crypto.cc | 1 - src/node_dtrace.cc | 1 - src/node_file.cc | 1 - src/node_v8.cc | 1 - src/node_zlib.cc | 1 - src/pipe_wrap.cc | 1 - src/process_wrap.cc | 1 - src/signal_wrap.cc | 1 - src/stream_wrap.cc | 1 - src/timer_wrap.cc | 1 - src/tls_wrap.cc | 1 - src/tty_wrap.cc | 2 -- src/udp_wrap.cc | 2 -- src/uv.cc | 2 -- 21 files changed, 28 deletions(-) diff --git a/src/cares_wrap.cc b/src/cares_wrap.cc index bdbbd1a46099cc..4a9c6f7a9cddca 100644 --- a/src/cares_wrap.cc +++ b/src/cares_wrap.cc @@ -36,7 +36,6 @@ namespace cares_wrap { using v8::Array; using v8::Context; using v8::EscapableHandleScope; -using v8::Function; using v8::FunctionCallbackInfo; using v8::FunctionTemplate; using v8::HandleScope; diff --git a/src/debug-agent.cc b/src/debug-agent.cc index 920f42e77eaee8..14ac382ada07c3 100644 --- a/src/debug-agent.cc +++ b/src/debug-agent.cc @@ -36,7 +36,6 @@ namespace node { namespace debugger { using v8::Context; -using v8::Function; using v8::FunctionCallbackInfo; using v8::FunctionTemplate; using v8::HandleScope; diff --git a/src/env.cc b/src/env.cc index 2598e775e8e240..8efe13816c0ee9 100644 --- a/src/env.cc +++ b/src/env.cc @@ -21,7 +21,6 @@ using v8::Local; using v8::Message; using v8::StackFrame; using v8::StackTrace; -using v8::Value; void Environment::Start(int argc, const char* const* argv, diff --git a/src/inspector_agent.cc b/src/inspector_agent.cc index 55ee1810752494..5a870aa91ca0f4 100644 --- a/src/inspector_agent.cc +++ b/src/inspector_agent.cc @@ -155,7 +155,6 @@ bool RespondToGet(inspector_socket_t* socket, const std::string& path, namespace inspector { -using blink::protocol::DictionaryValue; class AgentImpl { public: diff --git a/src/node.cc b/src/node.cc index fce103ecb2cc4a..dbc2478448352e 100644 --- a/src/node.cc +++ b/src/node.cc @@ -125,7 +125,6 @@ using v8::ScriptOrigin; using v8::SealHandleScope; using v8::String; using v8::TryCatch; -using v8::Uint32; using v8::Uint32Array; using v8::V8; using v8::Value; diff --git a/src/node_buffer.cc b/src/node_buffer.cc index d86968ebabf398..388ee6b5692a93 100644 --- a/src/node_buffer.cc +++ b/src/node_buffer.cc @@ -95,19 +95,15 @@ using v8::ArrayBuffer; using v8::ArrayBufferCreationMode; using v8::Context; using v8::EscapableHandleScope; -using v8::Function; using v8::FunctionCallbackInfo; -using v8::HandleScope; using v8::Integer; using v8::Isolate; using v8::Local; using v8::Maybe; using v8::MaybeLocal; -using v8::Number; using v8::Object; using v8::Persistent; using v8::String; -using v8::Uint32; using v8::Uint32Array; using v8::Uint8Array; using v8::Value; diff --git a/src/node_contextify.cc b/src/node_contextify.cc index 95911be7e708e6..091b2a5ee3f711 100644 --- a/src/node_contextify.cc +++ b/src/node_contextify.cc @@ -23,7 +23,6 @@ using v8::FunctionCallbackInfo; using v8::FunctionTemplate; using v8::HandleScope; using v8::Integer; -using v8::Isolate; using v8::Local; using v8::Maybe; using v8::MaybeLocal; @@ -41,7 +40,6 @@ using v8::String; using v8::TryCatch; using v8::Uint8Array; using v8::UnboundScript; -using v8::V8; using v8::Value; using v8::WeakCallbackInfo; diff --git a/src/node_crypto.cc b/src/node_crypto.cc index 2b85d1a60980dd..9cf216f2d60440 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -83,7 +83,6 @@ using v8::PropertyAttribute; using v8::PropertyCallbackInfo; using v8::ReadOnly; using v8::String; -using v8::V8; using v8::Value; diff --git a/src/node_dtrace.cc b/src/node_dtrace.cc index 378d8f6b7db2e4..e42c20877df126 100644 --- a/src/node_dtrace.cc +++ b/src/node_dtrace.cc @@ -32,7 +32,6 @@ namespace node { using v8::FunctionCallbackInfo; -using v8::FunctionTemplate; using v8::GCCallbackFlags; using v8::GCType; using v8::HandleScope; diff --git a/src/node_file.cc b/src/node_file.cc index 1fdef68ca6129b..77d11756a2dbe5 100644 --- a/src/node_file.cc +++ b/src/node_file.cc @@ -34,7 +34,6 @@ using v8::FunctionCallbackInfo; using v8::FunctionTemplate; using v8::HandleScope; using v8::Integer; -using v8::Isolate; using v8::Local; using v8::Number; using v8::Object; diff --git a/src/node_v8.cc b/src/node_v8.cc index 04da61677dc26d..43dd86c7574b4b 100644 --- a/src/node_v8.cc +++ b/src/node_v8.cc @@ -10,7 +10,6 @@ namespace node { using v8::Array; using v8::ArrayBuffer; using v8::Context; -using v8::Function; using v8::FunctionCallbackInfo; using v8::HeapSpaceStatistics; using v8::HeapStatistics; diff --git a/src/node_zlib.cc b/src/node_zlib.cc index a2acec49c7d96a..09910e79eb35a9 100644 --- a/src/node_zlib.cc +++ b/src/node_zlib.cc @@ -27,7 +27,6 @@ using v8::Integer; using v8::Local; using v8::Number; using v8::Object; -using v8::String; using v8::Value; enum node_zlib_mode { diff --git a/src/pipe_wrap.cc b/src/pipe_wrap.cc index e013811687f9d9..8590a0dc9e07cd 100644 --- a/src/pipe_wrap.cc +++ b/src/pipe_wrap.cc @@ -26,7 +26,6 @@ using v8::HandleScope; using v8::Integer; using v8::Local; using v8::Object; -using v8::String; using v8::Value; diff --git a/src/process_wrap.cc b/src/process_wrap.cc index d574bf22965407..3dcde0962af080 100644 --- a/src/process_wrap.cc +++ b/src/process_wrap.cc @@ -12,7 +12,6 @@ namespace node { using v8::Array; using v8::Context; -using v8::Function; using v8::FunctionCallbackInfo; using v8::FunctionTemplate; using v8::HandleScope; diff --git a/src/signal_wrap.cc b/src/signal_wrap.cc index 280c9e3eb91779..582d1a9ecfdc02 100644 --- a/src/signal_wrap.cc +++ b/src/signal_wrap.cc @@ -10,7 +10,6 @@ namespace node { using v8::Context; -using v8::Function; using v8::FunctionCallbackInfo; using v8::FunctionTemplate; using v8::HandleScope; diff --git a/src/stream_wrap.cc b/src/stream_wrap.cc index f3f1d3bfdf6f7f..17278ff83aaf54 100644 --- a/src/stream_wrap.cc +++ b/src/stream_wrap.cc @@ -30,7 +30,6 @@ using v8::HandleScope; using v8::Integer; using v8::Local; using v8::Object; -using v8::True; using v8::Value; diff --git a/src/timer_wrap.cc b/src/timer_wrap.cc index 7f6c0029bf333d..f3267e9448527a 100644 --- a/src/timer_wrap.cc +++ b/src/timer_wrap.cc @@ -11,7 +11,6 @@ namespace node { using v8::Context; -using v8::Function; using v8::FunctionCallbackInfo; using v8::FunctionTemplate; using v8::HandleScope; diff --git a/src/tls_wrap.cc b/src/tls_wrap.cc index ceb3536cd25ce1..7c5df1105a69c3 100644 --- a/src/tls_wrap.cc +++ b/src/tls_wrap.cc @@ -17,7 +17,6 @@ namespace node { using crypto::SecureContext; using crypto::SSLWrap; -using v8::Boolean; using v8::Context; using v8::EscapableHandleScope; using v8::Exception; diff --git a/src/tty_wrap.cc b/src/tty_wrap.cc index 319a74fd368eae..26f061b99b34e8 100644 --- a/src/tty_wrap.cc +++ b/src/tty_wrap.cc @@ -15,13 +15,11 @@ namespace node { using v8::Array; using v8::Context; -using v8::Function; using v8::FunctionCallbackInfo; using v8::FunctionTemplate; using v8::Integer; using v8::Local; using v8::Object; -using v8::String; using v8::Value; diff --git a/src/udp_wrap.cc b/src/udp_wrap.cc index a0d8b1f7613b61..1cf9678cb185d4 100644 --- a/src/udp_wrap.cc +++ b/src/udp_wrap.cc @@ -17,7 +17,6 @@ using v8::Array; using v8::Context; using v8::EscapableHandleScope; using v8::External; -using v8::Function; using v8::FunctionCallbackInfo; using v8::FunctionTemplate; using v8::HandleScope; @@ -27,7 +26,6 @@ using v8::Object; using v8::PropertyAttribute; using v8::PropertyCallbackInfo; using v8::String; -using v8::Uint32; using v8::Undefined; using v8::Value; diff --git a/src/uv.cc b/src/uv.cc index 21520f5cb8783c..c0e742bf159d98 100644 --- a/src/uv.cc +++ b/src/uv.cc @@ -8,11 +8,9 @@ namespace uv { using v8::Context; using v8::FunctionCallbackInfo; -using v8::FunctionTemplate; using v8::Integer; using v8::Local; using v8::Object; -using v8::String; using v8::Value;