]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/OSDMap: remove unused static
authorSage Weil <sage@redhat.com>
Mon, 28 Aug 2017 21:11:20 +0000 (17:11 -0400)
committerSage Weil <sage@redhat.com>
Wed, 6 Sep 2017 14:18:05 +0000 (10:18 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/OSDMap.cc

index 0341927125fdb3a031d15376e37565385bb0a1ca..8314d3acb4612b8f60c0fd5519025fac9ad28f33 100644 (file)
@@ -1162,19 +1162,6 @@ void OSDMap::count_full_nearfull_osds(int *full, int *backfill, int *nearfull) c
   }
 }
 
-static bool get_osd_utilization(
-  const mempool::pgmap::unordered_map<int32_t,osd_stat_t> &osd_stat,
-  int id, int64_t* kb, int64_t* kb_used, int64_t* kb_avail)
-{
-  auto p = osd_stat.find(id);
-  if (p == osd_stat.end())
-    return false;
-  *kb = p->second.kb;
-  *kb_used = p->second.kb_used;
-  *kb_avail = p->second.kb_avail;
-  return *kb > 0;
-}
-
 void OSDMap::get_full_osd_counts(set<int> *full, set<int> *backfill,
                                 set<int> *nearfull) const
 {