diff --git a/src/librbd/ObjectMap.cc b/src/librbd/ObjectMap.cc index 27d7c1f6d18..ae0850d322e 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 bb7a973cbe1..fd43ae97d23 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);