summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Durgin <josh.durgin@inktank.com>2013-02-25 12:12:57 -0800
committerJosh Durgin <josh.durgin@inktank.com>2013-02-25 12:12:57 -0800
commitc4537347b3de2220bf350951ad9da0924750ceb3 (patch)
tree3f803471692636589a0c4c095a8d22cbd885e68d
parentdb5fc2270f91aae220fc3c97b0c62e92e263527b (diff)
downloadceph-c4537347b3de2220bf350951ad9da0924750ceb3.tar.gz
librbd: remove unused internal method
get_snap_size() has been replaced by get_image_size(snap_id) everywhere. Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
-rw-r--r--src/librbd/ImageCtx.cc10
-rw-r--r--src/librbd/ImageCtx.h1
2 files changed, 0 insertions, 11 deletions
diff --git a/src/librbd/ImageCtx.cc b/src/librbd/ImageCtx.cc
index f2ffd79b662..99641ad54b4 100644
--- a/src/librbd/ImageCtx.cc
+++ b/src/librbd/ImageCtx.cc
@@ -338,16 +338,6 @@ namespace librbd {
return -ENOENT;
}
- int ImageCtx::get_snap_size(string in_snap_name, uint64_t *out_size) const
- {
- map<string, SnapInfo>::const_iterator it = snaps_by_name.find(in_snap_name);
- if (it != snaps_by_name.end()) {
- *out_size = it->second.size;
- return 0;
- }
- return -ENOENT;
- }
-
void ImageCtx::add_snap(string in_snap_name, snap_t id, uint64_t in_size,
uint64_t features,
parent_info parent,
diff --git a/src/librbd/ImageCtx.h b/src/librbd/ImageCtx.h
index 99a07a6bf1c..53f6f95e5be 100644
--- a/src/librbd/ImageCtx.h
+++ b/src/librbd/ImageCtx.h
@@ -103,7 +103,6 @@ namespace librbd {
librados::snap_t get_snap_id(std::string in_snap_name) const;
int get_snap_name(snapid_t snap_id, std::string *out_snap_name) const;
int get_parent_spec(snapid_t snap_id, parent_spec *pspec);
- int get_snap_size(std::string in_snap_name, uint64_t *out_size) const;
int is_snap_protected(string in_snap_name, bool *is_protected) const;
int is_snap_unprotected(string in_snap_name, bool *is_unprotected) const;