From 2c480bdae67f333e888a6fd8b25425d8b3b50ff0 Mon Sep 17 00:00:00 2001 From: Sakthipriyan Vairamani Date: Thu, 7 Apr 2016 21:31:11 +0530 Subject: [PATCH] src: fix check-imports.py linter errors This patch fixes all the linter errors. PR-URL: https://github.com/nodejs/node/pull/6105 Reviewed-By: Ben Noordhuis Reviewed-By: Fedor Indutny Reviewed-By: James M Snell --- src/async-wrap.cc | 1 - src/env.cc | 1 - src/handle_wrap.cc | 1 - src/node.cc | 2 -- src/node_buffer.cc | 1 - src/node_config.cc | 2 +- src/node_contextify.cc | 2 -- src/node_v8.cc | 1 - src/node_watchdog.cc | 3 --- src/pipe_wrap.cc | 1 - src/stream_wrap.cc | 5 ----- src/string_bytes.cc | 2 +- src/tcp_wrap.cc | 1 - src/tls_wrap.cc | 4 +--- src/tty_wrap.cc | 1 - src/util.cc | 2 +- src/uv.cc | 2 +- 17 files changed, 5 insertions(+), 27 deletions(-) diff --git a/src/async-wrap.cc b/src/async-wrap.cc index 8129500a92..79631b1ec1 100644 --- a/src/async-wrap.cc +++ b/src/async-wrap.cc @@ -8,7 +8,6 @@ #include "v8.h" #include "v8-profiler.h" -using v8::Array; using v8::Boolean; using v8::Context; using v8::Function; diff --git a/src/env.cc b/src/env.cc index ea0ab51cfe..12be4866aa 100644 --- a/src/env.cc +++ b/src/env.cc @@ -17,7 +17,6 @@ using v8::Local; using v8::Message; using v8::StackFrame; using v8::StackTrace; -using v8::TryCatch; using v8::Value; void Environment::PrintSyncTrace() const { diff --git a/src/handle_wrap.cc b/src/handle_wrap.cc index 41c42caa3c..7a7ce8ae26 100644 --- a/src/handle_wrap.cc +++ b/src/handle_wrap.cc @@ -9,7 +9,6 @@ namespace node { -using v8::Boolean; using v8::Context; using v8::FunctionCallbackInfo; using v8::HandleScope; diff --git a/src/node.cc b/src/node.cc index e7836fe0a6..2cfb2866b8 100644 --- a/src/node.cc +++ b/src/node.cc @@ -127,8 +127,6 @@ using v8::PromiseRejectMessage; using v8::PropertyCallbackInfo; using v8::ScriptOrigin; using v8::SealHandleScope; -using v8::StackFrame; -using v8::StackTrace; using v8::String; using v8::TryCatch; using v8::Uint32; diff --git a/src/node_buffer.cc b/src/node_buffer.cc index 322cc5f57c..ea62dc9294 100644 --- a/src/node_buffer.cc +++ b/src/node_buffer.cc @@ -71,7 +71,6 @@ using v8::Context; using v8::EscapableHandleScope; using v8::Function; using v8::FunctionCallbackInfo; -using v8::FunctionTemplate; using v8::HandleScope; using v8::Integer; using v8::Isolate; diff --git a/src/node_config.cc b/src/node_config.cc index 408f1d20a3..8491739774 100644 --- a/src/node_config.cc +++ b/src/node_config.cc @@ -11,8 +11,8 @@ namespace node { using v8::Context; using v8::Local; using v8::Object; -using v8::Value; using v8::ReadOnly; +using v8::Value; // The config binding is used to provide an internal view of compile or runtime // config options that are required internally by lib/*.js code. This is an diff --git a/src/node_contextify.cc b/src/node_contextify.cc index 6586f79bfe..db83660308 100644 --- a/src/node_contextify.cc +++ b/src/node_contextify.cc @@ -11,7 +11,6 @@ namespace node { -using v8::AccessType; using v8::Array; using v8::ArrayBuffer; using v8::Boolean; @@ -30,7 +29,6 @@ using v8::Maybe; using v8::MaybeLocal; using v8::Name; using v8::NamedPropertyHandlerConfiguration; -using v8::None; using v8::Object; using v8::ObjectTemplate; using v8::Persistent; diff --git a/src/node_v8.cc b/src/node_v8.cc index a1122e57f1..04da61677d 100644 --- a/src/node_v8.cc +++ b/src/node_v8.cc @@ -20,7 +20,6 @@ using v8::NewStringType; using v8::Object; using v8::String; using v8::Uint32; -using v8::Uint32Array; using v8::V8; using v8::Value; diff --git a/src/node_watchdog.cc b/src/node_watchdog.cc index ac9f304926..dfa7debd9a 100644 --- a/src/node_watchdog.cc +++ b/src/node_watchdog.cc @@ -4,9 +4,6 @@ namespace node { -using v8::V8; - - Watchdog::Watchdog(v8::Isolate* isolate, uint64_t ms) : isolate_(isolate), destroyed_(false) { int rc; diff --git a/src/pipe_wrap.cc b/src/pipe_wrap.cc index ec6ef32b08..25080041c2 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::PropertyAttribute; using v8::String; using v8::Undefined; using v8::Value; diff --git a/src/stream_wrap.cc b/src/stream_wrap.cc index e6236a6e52..695e917e02 100644 --- a/src/stream_wrap.cc +++ b/src/stream_wrap.cc @@ -22,7 +22,6 @@ namespace node { -using v8::Array; using v8::Context; using v8::EscapableHandleScope; using v8::FunctionCallbackInfo; @@ -30,12 +29,8 @@ using v8::FunctionTemplate; using v8::HandleScope; using v8::Integer; using v8::Local; -using v8::Number; using v8::Object; -using v8::PropertyCallbackInfo; -using v8::String; using v8::True; -using v8::Undefined; using v8::Value; diff --git a/src/string_bytes.cc b/src/string_bytes.cc index b8d7d3b42f..5bd3a21176 100644 --- a/src/string_bytes.cc +++ b/src/string_bytes.cc @@ -19,10 +19,10 @@ using v8::EscapableHandleScope; using v8::HandleScope; using v8::Isolate; using v8::Local; +using v8::MaybeLocal; using v8::Object; using v8::String; using v8::Value; -using v8::MaybeLocal; template class ExternString: public ResourceType { diff --git a/src/tcp_wrap.cc b/src/tcp_wrap.cc index 4bfe9dd0d8..4e8617af2d 100644 --- a/src/tcp_wrap.cc +++ b/src/tcp_wrap.cc @@ -27,7 +27,6 @@ using v8::HandleScope; using v8::Integer; using v8::Local; using v8::Object; -using v8::PropertyAttribute; using v8::String; using v8::Undefined; using v8::Value; diff --git a/src/tls_wrap.cc b/src/tls_wrap.cc index ba8f760194..d4214ed7c3 100644 --- a/src/tls_wrap.cc +++ b/src/tls_wrap.cc @@ -15,8 +15,8 @@ namespace node { -using crypto::SSLWrap; using crypto::SecureContext; +using crypto::SSLWrap; using v8::Boolean; using v8::Context; using v8::EscapableHandleScope; @@ -24,9 +24,7 @@ using v8::Exception; using v8::Function; using v8::FunctionCallbackInfo; using v8::FunctionTemplate; -using v8::Integer; using v8::Local; -using v8::Null; using v8::Object; using v8::String; using v8::Value; diff --git a/src/tty_wrap.cc b/src/tty_wrap.cc index 567a504276..5a1d333c3d 100644 --- a/src/tty_wrap.cc +++ b/src/tty_wrap.cc @@ -21,7 +21,6 @@ using v8::FunctionTemplate; using v8::Integer; using v8::Local; using v8::Object; -using v8::PropertyAttribute; using v8::String; using v8::Value; diff --git a/src/util.cc b/src/util.cc index 20325d0bed..0de8321e3f 100644 --- a/src/util.cc +++ b/src/util.cc @@ -6,8 +6,8 @@ namespace node { using v8::Isolate; -using v8::String; using v8::Local; +using v8::String; using v8::Value; static int MakeUtf8String(Isolate* isolate, diff --git a/src/uv.cc b/src/uv.cc index d03e775008..21520f5cb8 100644 --- a/src/uv.cc +++ b/src/uv.cc @@ -9,8 +9,8 @@ namespace uv { using v8::Context; using v8::FunctionCallbackInfo; using v8::FunctionTemplate; -using v8::Local; using v8::Integer; +using v8::Local; using v8::Object; using v8::String; using v8::Value;