]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: cleanup: remove the unused function ObjectMap::remove()
authorDongsheng Yang <dongsheng.yang@easystack.cn>
Tue, 14 Feb 2017 11:43:42 +0000 (19:43 +0800)
committerDongsheng Yang <dongsheng.yang@easystack.cn>
Thu, 23 Feb 2017 03:11:00 +0000 (11:11 +0800)
Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
src/librbd/ObjectMap.cc
src/librbd/ObjectMap.h

index 27d7c1f6d18cb5e3afd2b2a663b14fe56b08fc78..ae0850d322ea18465c107f85212f3cdac7b29cc3 100644 (file)
@@ -43,11 +43,6 @@ ObjectMap<I>::~ObjectMap() {
   delete m_update_guard;
 }
 
-template <typename I>
-int ObjectMap<I>::remove(librados::IoCtx &io_ctx, const std::string &image_id) {
-  return io_ctx.remove(object_map_name(image_id, CEPH_NOSNAP));
-}
-
 template <typename I>
 int ObjectMap<I>::aio_remove(librados::IoCtx &io_ctx, const std::string &image_id,
                             librados::AioCompletion *c) {
index bb7a973cbe1a2dcc6488d593562df0a0b84981a2..fd43ae97d23b0797998acaae9259ae3eb814d566 100644 (file)
@@ -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);