]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: remove unused context_cb() function 24673/head
authorKefu Chai <kchai@redhat.com>
Fri, 19 Oct 2018 06:20:26 +0000 (14:20 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 19 Oct 2018 08:33:42 +0000 (16:33 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/librbd/LibrbdWriteback.cc

index b19dd5a741badf4d2296aec1818bec4f8e0ebd5c..acd7e87495809b3436ad2e71440efc9f58f83eb5 100644 (file)
 
 namespace librbd {
 
-  /**
-   * callback to finish a rados completion as a Context
-   *
-   * @param c completion
-   * @param arg Context* recast as void*
-   */
-  void context_cb(rados_completion_t c, void *arg)
-  {
-    Context *con = reinterpret_cast<Context *>(arg);
-    con->complete(rados_aio_get_return_value(c));
-  }
-
   /**
    * context to wrap another context in a Mutex
    *