From ef4061f0adbe47412f68aa1c11e5135bfa2f4818 Mon Sep 17 00:00:00 2001 From: Noah Watkins Date: Sat, 7 Dec 2013 09:58:43 -0800 Subject: [PATCH] librbd: remove unused private variable Signed-off-by: Noah Watkins --- src/librbd/AioCompletion.h | 4 +--- src/librbd/internal.cc | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/librbd/AioCompletion.h b/src/librbd/AioCompletion.h index 899586d51a7a..c67a44fa50ee 100644 --- a/src/librbd/AioCompletion.h +++ b/src/librbd/AioCompletion.h @@ -196,12 +196,10 @@ namespace librbd { class C_CacheRead : public Context { public: - C_CacheRead(Context *completion, AioRead *req) - : m_completion(completion), m_req(req) {} + explicit C_CacheRead(AioRead *req) : m_req(req) {} virtual ~C_CacheRead() {} virtual void finish(int r); private: - Context *m_completion; AioRead *m_req; }; } diff --git a/src/librbd/internal.cc b/src/librbd/internal.cc index f7899053a375..84e5477dec82 100644 --- a/src/librbd/internal.cc +++ b/src/librbd/internal.cc @@ -3080,7 +3080,7 @@ reprotect_and_return_err: c->add_request(); if (ictx->object_cacher) { - C_CacheRead *cache_comp = new C_CacheRead(req_comp, req); + C_CacheRead *cache_comp = new C_CacheRead(req); ictx->aio_read_from_cache(q->oid, &req->data(), q->length, q->offset, cache_comp); -- 2.47.3