From a0580205c8949b066025dcda44c3365e1a0c8c8c Mon Sep 17 00:00:00 2001 From: Yueh-Hsuan Chiang Date: Tue, 26 May 2015 10:46:26 -0700 Subject: [PATCH] Removed an unused private variable in db_impl.h Summary: Removed an unused private variable in db_impl.h Test Plan: make db_test Reviewers: sdong, anthony, igor Reviewed By: igor Subscribers: dhruba, leveldb Differential Revision: https://reviews.facebook.net/D38925 --- db/db_impl.cc | 1 - db/db_impl.h | 3 --- 2 files changed, 4 deletions(-) diff --git a/db/db_impl.cc b/db/db_impl.cc index 7c03df3b0..5c3df311b 100644 --- a/db/db_impl.cc +++ b/db/db_impl.cc @@ -312,7 +312,6 @@ DBImpl::~DBImpl() { while (bg_compaction_scheduled_ || bg_flush_scheduled_ || notifying_events_) { bg_cv_.Wait(); } - listeners_.clear(); flush_scheduler_.Clear(); while (!flush_queue_.empty()) { diff --git a/db/db_impl.h b/db/db_impl.h index ebcaec3dd..c07ff4919 100644 --- a/db/db_impl.h +++ b/db/db_impl.h @@ -626,9 +626,6 @@ class DBImpl : public DB { // Indicate DB was opened successfully bool opened_successfully_; - // The list of registered event listeners. - std::list listeners_; - // count how many events are currently being notified. int notifying_events_;