mirror of
https://github.com/ceph/ceph
synced 2025-01-18 09:02:08 +00:00
librbd: cleanup: remove the unused function ObjectMap::remove()
Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
This commit is contained in:
parent
82f8d822da
commit
c8d5a29783
@ -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) {
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user