]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osdmap: remove unused versions of get_[cluster_]inst
authorGreg Farnum <gregf@hq.newdream.net>
Thu, 29 Jul 2010 21:20:31 +0000 (14:20 -0700)
committerGreg Farnum <gregf@hq.newdream.net>
Tue, 3 Aug 2010 21:56:02 +0000 (14:56 -0700)
src/osd/OSDMap.h

index 58fff5561e8f617ec1fd526e71f0224154e76b00..59f60f23d5b45abb8f6496c3154c80c3374ad413 100644 (file)
@@ -448,25 +448,11 @@ private:
     return entity_inst_t(entity_name_t::OSD(osd),
                         osd_addr[osd]);
   }
-  bool get_inst(int osd, entity_inst_t& inst) { 
-    if (have_inst(osd)) {
-      inst.name = entity_name_t::OSD(osd);
-      inst.addr = osd_addr[osd];
-      return true;
-    } 
-    return false;
-  }
   entity_inst_t get_cluster_inst(int osd) {
     assert(exists(osd) && is_up(osd));
     if(osd_cluster_addr[osd] == entity_addr_t()) return get_inst(osd);
     return entity_inst_t(entity_name_t::OSD(osd), osd_cluster_addr[osd]);
   }
-  bool get_cluster_inst(int osd, entity_inst_t& inst) {
-    bool exists = get_inst(osd, inst);
-    if (exists && (osd_cluster_addr[osd] != entity_addr_t()))
-        inst.addr = osd_cluster_addr[osd];
-    return exists;
-  }
   entity_inst_t get_hb_inst(int osd) {
     assert(exists(osd));
     entity_inst_t i(entity_name_t::OSD(osd),