librbd: cleanup: remove the unused function ObjectMap::remove()

Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
This commit is contained in:
Dongsheng Yang 2017-02-14 19:43:42 +08:00
parent 82f8d822da
commit c8d5a29783
2 changed files with 0 additions and 6 deletions

View File

@ -43,11 +43,6 @@ ObjectMap<I>::~ObjectMap() {
delete m_update_guard; 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> template <typename I>
int ObjectMap<I>::aio_remove(librados::IoCtx &io_ctx, const std::string &image_id, int ObjectMap<I>::aio_remove(librados::IoCtx &io_ctx, const std::string &image_id,
librados::AioCompletion *c) { librados::AioCompletion *c) {

View File

@ -33,7 +33,6 @@ public:
ObjectMap(ImageCtxT &image_ctx, uint64_t snap_id); ObjectMap(ImageCtxT &image_ctx, uint64_t snap_id);
~ObjectMap(); ~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 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, static std::string object_map_name(const std::string &image_id,
uint64_t snap_id); uint64_t snap_id);