rgw clean-up: remove unused var & func in RGWRados::SystemObject

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
This commit is contained in:
J. Eric Ivancich 2017-11-17 11:59:26 -05:00
parent c662dc3067
commit a5c88f61cb
2 changed files with 4 additions and 11 deletions

View File

@ -9863,11 +9863,6 @@ int RGWRados::Object::Read::range_to_ofs(uint64_t obj_size, int64_t &ofs, int64_
return 0;
}
int RGWRados::SystemObject::get_state(RGWRawObjState **pstate, RGWObjVersionTracker *objv_tracker)
{
return store->get_system_obj_state(&ctx, obj, pstate, objv_tracker);
}
int RGWRados::stat_system_obj(RGWObjectCtx& obj_ctx,
RGWRados::SystemObject::Read::GetObjState& state,
rgw_raw_obj& obj,

View File

@ -2650,13 +2650,11 @@ public:
RGWObjectCtx& ctx;
rgw_raw_obj obj;
RGWObjState *state;
protected:
int get_state(RGWRawObjState **pstate, RGWObjVersionTracker *objv_tracker);
public:
SystemObject(RGWRados *_store, RGWObjectCtx& _ctx, rgw_raw_obj& _obj) : store(_store), ctx(_ctx), obj(_obj), state(NULL) {}
SystemObject(RGWRados *_store, RGWObjectCtx& _ctx, rgw_raw_obj& _obj) :
store(_store), ctx(_ctx), obj(_obj)
{}
void invalidate_state();