]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librgw: remove dead code (rgw_readdir)
authorMatt Benjamin <mbenjamin@redhat.com>
Fri, 18 Dec 2015 00:46:57 +0000 (19:46 -0500)
committerMatt Benjamin <mbenjamin@redhat.com>
Fri, 12 Feb 2016 17:06:57 +0000 (12:06 -0500)
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/rgw_file.cc

index fe2f379bdb0245396eadf5ac7f899e641695d335..afce3ed3f52900e93f46112920b1d60f36f0f60b 100644 (file)
@@ -858,19 +858,6 @@ int rgw_read(struct rgw_fs *rgw_fs,
                       buffer);
 
   int rc = librgw.get_fe()->execute_req(&req);
-#if 0
-  if (! rc) {
-    uint64_t off = 0;
-    for (auto& bp : bl.buffers()) {
-      size_t bytes = std::min(length, size_t(bp.length()));
-      memcpy(static_cast<char*>(buffer)+off, bp.c_str(), bytes);
-      nread += bytes;
-      off += bytes;
-      if (off >= length)
-       break;
-    }
-  }
-#endif
   if ((rc == 0) &&
       (req.get_ret() == 0)) {
     *bytes_read = req.nread;