]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: remove unused internal method
authorJosh Durgin <josh.durgin@inktank.com>
Mon, 25 Feb 2013 20:12:57 +0000 (12:12 -0800)
committerJosh Durgin <josh.durgin@inktank.com>
Mon, 25 Feb 2013 20:12:57 +0000 (12:12 -0800)
get_snap_size() has been replaced by get_image_size(snap_id) everywhere.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
src/librbd/ImageCtx.cc
src/librbd/ImageCtx.h

index f2ffd79b6627baabd325f0e30d4be78d24f43834..99641ad54b46c3093fa7e790bc90a398887c002f 100644 (file)
@@ -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,
index 99a07a6bf1c57e08ce8c005f153aaebdc1b60a8d..53f6f95e5befb5b36e94fa2cae1f42763aa20878 100644 (file)
@@ -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;