]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: kill unused get_block_osd()
authorSage Weil <sage@inktank.com>
Thu, 4 Oct 2012 23:51:19 +0000 (16:51 -0700)
committerSage Weil <sage@inktank.com>
Mon, 15 Oct 2012 22:34:05 +0000 (15:34 -0700)
Replaced by ImageCtx::get_object_name().

Signed-off-by: Sage Weil <sage@inktank.com>
src/librbd/internal.cc

index 135efece95fa45e3b27ca2f0c6052b7b78b96af6..fd226c27f2de3a915c3a3ee0bafebf8691e01f02 100644 (file)
@@ -123,16 +123,6 @@ namespace librbd {
     info.parent_name[0] = '\0';
   }
 
-  string get_block_oid(const string &object_prefix, uint64_t num,
-                      bool old_format)
-  {
-    ostringstream oss;
-    int width = old_format ? 12 : 16;
-    oss << object_prefix << "."
-       << std::hex << std::setw(width) << std::setfill('0') << num;
-    return oss.str();
-  }
-
   uint64_t oid_to_object_no(const string& oid, const string& object_prefix)
   {
     istringstream iss(oid);