osd/OSDMap: remove unused dump_json()

Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2015-06-25 15:25:19 +08:00
parent 50a33dea0a
commit fbd4d12efc
2 changed files with 0 additions and 10 deletions

View File

@ -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());

View File

@ -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; }