From: Noah Watkins Date: Sat, 7 Dec 2013 17:58:43 +0000 (-0800) Subject: librbd: remove unused private variable X-Git-Tag: v0.74~14^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F918%2Fhead;p=ceph.git librbd: remove unused private variable Signed-off-by: Noah Watkins --- 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);