mirror of
https://github.com/ceph/ceph
synced 2025-02-22 18:47:18 +00:00
osd/OSDMap: remove unused dump_json()
Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
parent
50a33dea0a
commit
fbd4d12efc
@ -2223,15 +2223,6 @@ void OSDMap::dump_erasure_code_profiles(const map<string,map<string,string> > &p
|
||||
f->close_section();
|
||||
}
|
||||
|
||||
void OSDMap::dump_json(ostream& out) const
|
||||
{
|
||||
JSONFormatter jsf(true);
|
||||
jsf.open_object_section("osdmap");
|
||||
dump(&jsf);
|
||||
jsf.close_section();
|
||||
jsf.flush(out);
|
||||
}
|
||||
|
||||
void OSDMap::dump(Formatter *f) const
|
||||
{
|
||||
f->dump_int("epoch", get_epoch());
|
||||
|
@ -848,7 +848,6 @@ public:
|
||||
static string get_flag_string(unsigned flags);
|
||||
static void dump_erasure_code_profiles(const map<string,map<string,string> > &profiles,
|
||||
Formatter *f);
|
||||
void dump_json(ostream& out) const;
|
||||
void dump(Formatter *f) const;
|
||||
static void generate_test_instances(list<OSDMap*>& o);
|
||||
bool check_new_blacklist_entries() const { return new_blacklist_entries; }
|
||||
|
Loading…
Reference in New Issue
Block a user