From 633268c6df1ac18ed4e9053c293829429c3f1286 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/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 +- 16 files changed, 5 insertions(+), 26 deletions(-) diff --git a/src/async-wrap.cc b/src/async-wrap.cc index 8129500a922d97..79631b1ec14f4e 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 ea0ab51cfe922a..12be4866aac2d2 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/node.cc b/src/node.cc index e7836fe0a6b5ab..2cfb2866b898bf 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 322cc5f57ce881..ea62dc929435aa 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 408f1d20a3e049..84917397744a4e 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 6586f79bfedbe1..db83660308ce99 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 a1122e57f13cac..04da61677dc26d 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 ac9f304926bac4..dfa7debd9a7b3a 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 db2fd16715c8cd..1c60944fe64079 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 e6236a6e529864..695e917e027604 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 b8d7d3b42f11c8..5bd3a21176a474 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 50fcb506aeaddd..c36e814ec6e37f 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 ba8f760194d75e..d4214ed7c3efa5 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 a78d2311456c7c..63e8454bacdec3 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 20325d0bedbeb4..0de8321e3f5dd8 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 d03e7750083b4c..21520f5cb8783c 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;