Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Bevenius <daniel.bevenius@gmail.com>2020-05-26 09:48:17 +0300
committerRichard Lau <riclau@uk.ibm.com>2020-05-28 17:02:14 +0300
commit4a20cc937f6a2b830a2752e35da7e389bbc4e006 (patch)
tree47346f963c237519bd95dd23488deae9e1f931ca
parent785842a053d62820027c6b62b41110113a7f1755 (diff)
src: remove unused using declarations
This commit removes the unused using declarations reported by lint-cpp. PR-URL: https://github.com/nodejs/node/pull/33268 Refs: https://github.com/nodejs/node/issues/29226 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Christian Clauss <cclauss@me.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
-rw-r--r--src/async_wrap.cc1
-rw-r--r--src/heap_utils.cc1
-rw-r--r--src/inspector_agent.cc2
-rw-r--r--src/inspector_js_api.cc1
-rw-r--r--src/module_wrap.cc2
-rw-r--r--src/node_contextify.cc1
-rw-r--r--src/node_credentials.cc1
-rw-r--r--src/node_dir.cc1
-rw-r--r--src/node_dtrace.cc1
-rw-r--r--src/node_errors.cc1
-rw-r--r--src/node_http2.cc3
-rw-r--r--src/node_main_instance.cc1
-rw-r--r--src/node_messaging.cc1
-rw-r--r--src/node_native_module.cc3
-rw-r--r--src/node_native_module_env.cc1
-rw-r--r--src/node_options.cc1
-rw-r--r--src/node_perf.cc3
-rw-r--r--src/node_process_methods.cc2
-rw-r--r--src/node_process_object.cc2
-rw-r--r--src/node_report.cc3
-rw-r--r--src/node_report_module.cc2
-rw-r--r--src/node_util.cc1
-rw-r--r--src/node_zlib.cc2
-rw-r--r--src/pipe_wrap.cc1
-rw-r--r--src/tcp_wrap.cc1
-rw-r--r--src/tls_wrap.cc1
-rw-r--r--src/tty_wrap.cc1
27 files changed, 0 insertions, 41 deletions
diff --git a/src/async_wrap.cc b/src/async_wrap.cc
index 46a6ea6eebe..13c2c3ca5a5 100644
--- a/src/async_wrap.cc
+++ b/src/async_wrap.cc
@@ -39,7 +39,6 @@ using v8::HandleScope;
using v8::Integer;
using v8::Isolate;
using v8::Local;
-using v8::Maybe;
using v8::MaybeLocal;
using v8::Name;
using v8::Number;
diff --git a/src/heap_utils.cc b/src/heap_utils.cc
index 2e979e49e87..386bf61e4ec 100644
--- a/src/heap_utils.cc
+++ b/src/heap_utils.cc
@@ -15,7 +15,6 @@ using v8::Global;
using v8::HandleScope;
using v8::HeapSnapshot;
using v8::Isolate;
-using v8::JSON;
using v8::Local;
using v8::MaybeLocal;
using v8::Number;
diff --git a/src/inspector_agent.cc b/src/inspector_agent.cc
index 74b7fc13cde..f128a197ca9 100644
--- a/src/inspector_agent.cc
+++ b/src/inspector_agent.cc
@@ -45,8 +45,6 @@ using v8::Isolate;
using v8::Local;
using v8::Message;
using v8::Object;
-using v8::String;
-using v8::Task;
using v8::Value;
using v8_inspector::StringBuffer;
diff --git a/src/inspector_js_api.cc b/src/inspector_js_api.cc
index 5c9ad5e9464..c318f786466 100644
--- a/src/inspector_js_api.cc
+++ b/src/inspector_js_api.cc
@@ -12,7 +12,6 @@ namespace node {
namespace inspector {
namespace {
-using v8::Boolean;
using v8::Context;
using v8::Function;
using v8::FunctionCallbackInfo;
diff --git a/src/module_wrap.cc b/src/module_wrap.cc
index 59ef9daf727..ab8dbc9cbf7 100644
--- a/src/module_wrap.cc
+++ b/src/module_wrap.cc
@@ -33,9 +33,7 @@ using v8::HandleScope;
using v8::Integer;
using v8::IntegrityLevel;
using v8::Isolate;
-using v8::Just;
using v8::Local;
-using v8::Maybe;
using v8::MaybeLocal;
using v8::Module;
using v8::Number;
diff --git a/src/node_contextify.cc b/src/node_contextify.cc
index 99adccbcef9..69663afe423 100644
--- a/src/node_contextify.cc
+++ b/src/node_contextify.cc
@@ -36,7 +36,6 @@ namespace contextify {
using errors::TryCatchScope;
using v8::Array;
-using v8::ArrayBuffer;
using v8::ArrayBufferView;
using v8::Boolean;
using v8::Context;
diff --git a/src/node_credentials.cc b/src/node_credentials.cc
index ad0e1dbb9bb..d7be988d978 100644
--- a/src/node_credentials.cc
+++ b/src/node_credentials.cc
@@ -15,7 +15,6 @@ namespace node {
using v8::Array;
using v8::Context;
-using v8::Function;
using v8::FunctionCallbackInfo;
using v8::HandleScope;
using v8::Isolate;
diff --git a/src/node_dir.cc b/src/node_dir.cc
index cb32fa0a5c6..7d1e1b1d7d6 100644
--- a/src/node_dir.cc
+++ b/src/node_dir.cc
@@ -28,7 +28,6 @@ using fs::GetReqWrap;
using v8::Array;
using v8::Context;
-using v8::Function;
using v8::FunctionCallbackInfo;
using v8::FunctionTemplate;
using v8::HandleScope;
diff --git a/src/node_dtrace.cc b/src/node_dtrace.cc
index fc58734c59a..3c407f3447f 100644
--- a/src/node_dtrace.cc
+++ b/src/node_dtrace.cc
@@ -57,7 +57,6 @@ using v8::HandleScope;
using v8::Isolate;
using v8::Local;
using v8::Object;
-using v8::String;
using v8::Value;
#define SLURP_STRING(obj, member, valp) \
diff --git a/src/node_errors.cc b/src/node_errors.cc
index 22bc4d994b8..4f8b003d8da 100644
--- a/src/node_errors.cc
+++ b/src/node_errors.cc
@@ -25,7 +25,6 @@ using v8::Local;
using v8::Maybe;
using v8::MaybeLocal;
using v8::Message;
-using v8::Number;
using v8::Object;
using v8::ScriptOrigin;
using v8::StackFrame;
diff --git a/src/node_http2.cc b/src/node_http2.cc
index 25f353bb147..067e73b043b 100644
--- a/src/node_http2.cc
+++ b/src/node_http2.cc
@@ -22,7 +22,6 @@ using v8::ArrayBufferView;
using v8::Boolean;
using v8::Context;
using v8::EscapableHandleScope;
-using v8::Float64Array;
using v8::Function;
using v8::FunctionCallbackInfo;
using v8::FunctionTemplate;
@@ -35,8 +34,6 @@ using v8::Number;
using v8::Object;
using v8::ObjectTemplate;
using v8::String;
-using v8::Uint32;
-using v8::Uint32Array;
using v8::Uint8Array;
using v8::Undefined;
using v8::Value;
diff --git a/src/node_main_instance.cc b/src/node_main_instance.cc
index e9cef5fc002..f638e26dba5 100644
--- a/src/node_main_instance.cc
+++ b/src/node_main_instance.cc
@@ -20,7 +20,6 @@ using v8::HandleScope;
using v8::Isolate;
using v8::Local;
using v8::Locker;
-using v8::Object;
using v8::SealHandleScope;
NodeMainInstance::NodeMainInstance(Isolate* isolate,
diff --git a/src/node_messaging.cc b/src/node_messaging.cc
index 6081a523cd4..ffe29a5dea8 100644
--- a/src/node_messaging.cc
+++ b/src/node_messaging.cc
@@ -16,7 +16,6 @@ using v8::BackingStore;
using v8::CompiledWasmModule;
using v8::Context;
using v8::EscapableHandleScope;
-using v8::Exception;
using v8::Function;
using v8::FunctionCallbackInfo;
using v8::FunctionTemplate;
diff --git a/src/node_native_module.cc b/src/node_native_module.cc
index a57355418be..a7675d00d89 100644
--- a/src/node_native_module.cc
+++ b/src/node_native_module.cc
@@ -7,14 +7,11 @@ namespace native_module {
using v8::Context;
using v8::EscapableHandleScope;
using v8::Function;
-using v8::HandleScope;
using v8::Integer;
using v8::Isolate;
using v8::Local;
-using v8::Maybe;
using v8::MaybeLocal;
using v8::Object;
-using v8::Script;
using v8::ScriptCompiler;
using v8::ScriptOrigin;
using v8::String;
diff --git a/src/node_native_module_env.cc b/src/node_native_module_env.cc
index be647b01c64..ae8d349541b 100644
--- a/src/node_native_module_env.cc
+++ b/src/node_native_module_env.cc
@@ -11,7 +11,6 @@ using v8::FunctionCallbackInfo;
using v8::IntegrityLevel;
using v8::Isolate;
using v8::Local;
-using v8::Maybe;
using v8::MaybeLocal;
using v8::Name;
using v8::None;
diff --git a/src/node_options.cc b/src/node_options.cc
index 875c2e73001..a84420e3c5d 100644
--- a/src/node_options.cc
+++ b/src/node_options.cc
@@ -18,7 +18,6 @@ using v8::Local;
using v8::Map;
using v8::Number;
using v8::Object;
-using v8::String;
using v8::Undefined;
using v8::Value;
diff --git a/src/node_perf.cc b/src/node_perf.cc
index fb3b2c43acd..4ed1c956c9e 100644
--- a/src/node_perf.cc
+++ b/src/node_perf.cc
@@ -11,7 +11,6 @@
namespace node {
namespace performance {
-using v8::Array;
using v8::Context;
using v8::DontDelete;
using v8::Function;
@@ -25,14 +24,12 @@ using v8::Isolate;
using v8::Local;
using v8::Map;
using v8::MaybeLocal;
-using v8::Name;
using v8::NewStringType;
using v8::Number;
using v8::Object;
using v8::PropertyAttribute;
using v8::ReadOnly;
using v8::String;
-using v8::Uint32Array;
using v8::Value;
// Microseconds in a millisecond, as a float.
diff --git a/src/node_process_methods.cc b/src/node_process_methods.cc
index 88f4c1cfbd0..6013dbb86b7 100644
--- a/src/node_process_methods.cc
+++ b/src/node_process_methods.cc
@@ -36,13 +36,11 @@ using v8::ArrayBuffer;
using v8::BigUint64Array;
using v8::Context;
using v8::Float64Array;
-using v8::Function;
using v8::FunctionCallbackInfo;
using v8::HeapStatistics;
using v8::Integer;
using v8::Isolate;
using v8::Local;
-using v8::Name;
using v8::NewStringType;
using v8::Number;
using v8::Object;
diff --git a/src/node_process_object.cc b/src/node_process_object.cc
index ca17da9583e..5bec65805a1 100644
--- a/src/node_process_object.cc
+++ b/src/node_process_object.cc
@@ -15,10 +15,8 @@ using v8::EscapableHandleScope;
using v8::Function;
using v8::FunctionCallbackInfo;
using v8::FunctionTemplate;
-using v8::HandleScope;
using v8::Integer;
using v8::Isolate;
-using v8::Just;
using v8::Local;
using v8::MaybeLocal;
using v8::Name;
diff --git a/src/node_report.cc b/src/node_report.cc
index 98da24c9567..62b3d7abd10 100644
--- a/src/node_report.cc
+++ b/src/node_report.cc
@@ -41,11 +41,8 @@ using v8::HeapSpaceStatistics;
using v8::HeapStatistics;
using v8::Isolate;
using v8::Local;
-using v8::Number;
-using v8::StackTrace;
using v8::String;
using v8::V8;
-using v8::Value;
namespace per_process = node::per_process;
diff --git a/src/node_report_module.cc b/src/node_report_module.cc
index 700dd88aba6..5afc0cfe104 100644
--- a/src/node_report_module.cc
+++ b/src/node_report_module.cc
@@ -18,9 +18,7 @@ namespace report {
using node::Environment;
using node::Mutex;
using node::Utf8Value;
-using v8::Boolean;
using v8::Context;
-using v8::Function;
using v8::FunctionCallbackInfo;
using v8::HandleScope;
using v8::Isolate;
diff --git a/src/node_util.cc b/src/node_util.cc
index db9b8ec8d65..ec3f8e1fe7d 100644
--- a/src/node_util.cc
+++ b/src/node_util.cc
@@ -10,7 +10,6 @@ using v8::Array;
using v8::ArrayBufferView;
using v8::Boolean;
using v8::Context;
-using v8::Function;
using v8::FunctionCallbackInfo;
using v8::FunctionTemplate;
using v8::Global;
diff --git a/src/node_zlib.cc b/src/node_zlib.cc
index 83698bd5192..85e87327c07 100644
--- a/src/node_zlib.cc
+++ b/src/node_zlib.cc
@@ -43,7 +43,6 @@
namespace node {
-using v8::Array;
using v8::ArrayBuffer;
using v8::Context;
using v8::Function;
@@ -56,7 +55,6 @@ using v8::Integer;
using v8::Local;
using v8::Object;
using v8::String;
-using v8::Uint32;
using v8::Uint32Array;
using v8::Value;
diff --git a/src/pipe_wrap.cc b/src/pipe_wrap.cc
index c4a5b7cd62e..9e6831b2ed3 100644
--- a/src/pipe_wrap.cc
+++ b/src/pipe_wrap.cc
@@ -39,7 +39,6 @@ using v8::EscapableHandleScope;
using v8::Function;
using v8::FunctionCallbackInfo;
using v8::FunctionTemplate;
-using v8::HandleScope;
using v8::Int32;
using v8::Isolate;
using v8::Local;
diff --git a/src/tcp_wrap.cc b/src/tcp_wrap.cc
index 619c9ef6196..ef1b80939e9 100644
--- a/src/tcp_wrap.cc
+++ b/src/tcp_wrap.cc
@@ -42,7 +42,6 @@ using v8::EscapableHandleScope;
using v8::Function;
using v8::FunctionCallbackInfo;
using v8::FunctionTemplate;
-using v8::HandleScope;
using v8::Int32;
using v8::Integer;
using v8::Local;
diff --git a/src/tls_wrap.cc b/src/tls_wrap.cc
index 0c2c2bbc014..8fa1bd2eea0 100644
--- a/src/tls_wrap.cc
+++ b/src/tls_wrap.cc
@@ -47,7 +47,6 @@ using v8::HandleScope;
using v8::Integer;
using v8::Isolate;
using v8::Local;
-using v8::Maybe;
using v8::MaybeLocal;
using v8::Object;
using v8::PropertyAttribute;
diff --git a/src/tty_wrap.cc b/src/tty_wrap.cc
index 8536fae3ed7..401c2513dbc 100644
--- a/src/tty_wrap.cc
+++ b/src/tty_wrap.cc
@@ -32,7 +32,6 @@ namespace node {
using v8::Array;
using v8::Context;
-using v8::Function;
using v8::FunctionCallbackInfo;
using v8::FunctionTemplate;
using v8::Integer;