From: Dongsheng Yang Date: Tue, 14 Feb 2017 11:43:42 +0000 (+0800) Subject: librbd: cleanup: remove the unused function ObjectMap::remove() X-Git-Tag: v12.0.1~282^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c8d5a2978311e952ed67b4332b3a66fce3f8165d;p=ceph.git librbd: cleanup: remove the unused function ObjectMap::remove() Signed-off-by: Dongsheng Yang --- diff --git a/src/librbd/ObjectMap.cc b/src/librbd/ObjectMap.cc index 27d7c1f6d18c..ae0850d322ea 100644 --- a/src/librbd/ObjectMap.cc +++ b/src/librbd/ObjectMap.cc @@ -43,11 +43,6 @@ ObjectMap::~ObjectMap() { delete m_update_guard; } -template -int ObjectMap::remove(librados::IoCtx &io_ctx, const std::string &image_id) { - return io_ctx.remove(object_map_name(image_id, CEPH_NOSNAP)); -} - template int ObjectMap::aio_remove(librados::IoCtx &io_ctx, const std::string &image_id, librados::AioCompletion *c) { diff --git a/src/librbd/ObjectMap.h b/src/librbd/ObjectMap.h index bb7a973cbe1a..fd43ae97d23b 100644 --- a/src/librbd/ObjectMap.h +++ b/src/librbd/ObjectMap.h @@ -33,7 +33,6 @@ public: ObjectMap(ImageCtxT &image_ctx, uint64_t snap_id); ~ObjectMap(); - static int remove(librados::IoCtx &io_ctx, const std::string &image_id); static int aio_remove(librados::IoCtx &io_ctx, const std::string &image_id, librados::AioCompletion *c); static std::string object_map_name(const std::string &image_id, uint64_t snap_id);