From 82bbef614efef3551b34f55d340feac9bdd89877 Mon Sep 17 00:00:00 2001 From: XMRig Date: Wed, 27 Mar 2019 19:27:29 +0700 Subject: [PATCH] Remove unused field. --- src/workers/Hashrate.cpp | 3 +-- src/workers/Hashrate.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/workers/Hashrate.cpp b/src/workers/Hashrate.cpp index dcf58b840..b2abdf29d 100644 --- a/src/workers/Hashrate.cpp +++ b/src/workers/Hashrate.cpp @@ -51,8 +51,7 @@ inline static const char *format(double h, char *buf, size_t size) Hashrate::Hashrate(size_t threads, xmrig::Controller *controller) : m_highest(0.0), m_threads(threads), - m_timer(nullptr), - m_controller(controller) + m_timer(nullptr) { m_counts = new uint64_t*[threads]; m_timestamps = new uint64_t*[threads]; diff --git a/src/workers/Hashrate.h b/src/workers/Hashrate.h index 673c6a51d..d27b289e0 100644 --- a/src/workers/Hashrate.h +++ b/src/workers/Hashrate.h @@ -69,7 +69,6 @@ private: uint64_t** m_counts; uint64_t** m_timestamps; uv_timer_t *m_timer; - xmrig::Controller *m_controller; };