From ebbd036d0b7c3a25ae8764e29633f81a5e9500da Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Thu, 24 May 2018 14:00:56 +0200 Subject: [PATCH] src: remove unused private data member MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/20974 Reviewed-By: Anna Henningsen Reviewed-By: Benjamin Gruenbaum Reviewed-By: James M Snell Reviewed-By: Joyee Cheung Reviewed-By: Tiancheng "Timothy" Gu Reviewed-By: Tobias Nießen --- src/tracing/node_trace_buffer.cc | 2 +- src/tracing/node_trace_buffer.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tracing/node_trace_buffer.cc b/src/tracing/node_trace_buffer.cc index 6e552d659ad6a6..70a0ad4b311610 100644 --- a/src/tracing/node_trace_buffer.cc +++ b/src/tracing/node_trace_buffer.cc @@ -88,7 +88,7 @@ void InternalTraceBuffer::ExtractHandle( NodeTraceBuffer::NodeTraceBuffer(size_t max_chunks, Agent* agent, uv_loop_t* tracing_loop) - : tracing_loop_(tracing_loop), agent_(agent), + : tracing_loop_(tracing_loop), buffer1_(max_chunks, 0, agent), buffer2_(max_chunks, 1, agent) { current_buf_.store(&buffer1_); diff --git a/src/tracing/node_trace_buffer.h b/src/tracing/node_trace_buffer.h index f08e6a69da2104..b59ae4f0a0e4ef 100644 --- a/src/tracing/node_trace_buffer.h +++ b/src/tracing/node_trace_buffer.h @@ -72,7 +72,6 @@ class NodeTraceBuffer : public TraceBuffer { Mutex exit_mutex_; // Used to wait until async handles have been closed. ConditionVariable exit_cond_; - Agent* agent_; std::atomic current_buf_; InternalTraceBuffer buffer1_; InternalTraceBuffer buffer2_;