]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: remove unused variable
authorYehuda Sadeh <yehuda@inktank.com>
Fri, 14 Jun 2013 22:39:57 +0000 (15:39 -0700)
committerYehuda Sadeh <yehuda@inktank.com>
Fri, 14 Jun 2013 22:39:57 +0000 (15:39 -0700)
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
src/rgw/rgw_rest_s3.cc

index a8f440c13e717b982b02b5fb8fb7535c2386d13a..e759fc14ef8bca1f99621ae32d0217af5e1e4792 100644 (file)
@@ -75,8 +75,6 @@ int RGWGetObj_ObjStore_S3::send_response_data(bufferlist& bl, off_t bl_ofs, off_
   map<string, string>::iterator riter;
   bufferlist metadata_bl;
 
-  bool prepend_metadata = false;
-
   if (ret)
     goto done;
 
@@ -88,7 +86,6 @@ int RGWGetObj_ObjStore_S3::send_response_data(bufferlist& bl, off_t bl_ofs, off_
 
   if (s->system_request &&
       s->info.args.exists(RGW_SYS_PARAM_PREFIX "prepend-metadata")) {
-    prepend_metadata = true;
     ::encode(attrs, metadata_bl);
     s->cio->print("Rgwx-Embedded-Metadata-Len: %lld\r\n", (long long)metadata_bl.length());
     total_len += metadata_bl.length();