From: Danny Al-Gaaf Date: Sun, 11 May 2014 23:47:32 +0000 (+0200) Subject: rgw_rados.cc: remove dead assignment / unused variable 'obj_name' X-Git-Tag: v0.81~27^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b731c472dec3c00486f1508787187dbf1c4ca932;p=ceph.git rgw_rados.cc: remove dead assignment / unused variable 'obj_name' Fix for: [src/rgw/rgw_main.cc:1086]: (style) Variable 'frontend_frameworks' is assigned a value that is never used. Signed-off-by: Danny Al-Gaaf --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 761674e5d758..ecf210d677b1 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -770,8 +770,6 @@ int RGWObjManifest::generator::create_next(uint64_t ofs) if (ofs < last_ofs) /* only going forward */ return -EINVAL; - string obj_name = manifest->prefix; - uint64_t max_head_size = manifest->get_max_head_size(); if (ofs <= max_head_size) { @@ -791,7 +789,6 @@ int RGWObjManifest::generator::create_next(uint64_t ofs) last_ofs = ofs; manifest->set_obj_size(ofs); - manifest->get_implicit_location(cur_part_id, cur_stripe, ofs, NULL, &cur_obj); manifest->update_iterators();