]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: clean up the unneeded rgw::io::ChunkingFilter::has_content_length. 13504/head
authorRadoslaw Zarzynski <rzarzynski@mirantis.com>
Fri, 17 Feb 2017 18:59:20 +0000 (19:59 +0100)
committerRadoslaw Zarzynski <rzarzynski@mirantis.com>
Fri, 17 Feb 2017 21:59:26 +0000 (22:59 +0100)
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
src/rgw/rgw_client_io_filters.h

index acf3b787426034b44727c990b424607d67247f0f..bf13583ffeb94578a0e5770cca5bc99aa7c467a7 100644 (file)
@@ -210,24 +210,16 @@ template <typename T>
 class ChunkingFilter : public DecoratedRestfulClient<T> {
   template<typename Td> friend class DecoratedRestfulClient;
 protected:
-  bool has_content_length;
   bool chunking_enabled;
 
 public:
   template <typename U>
   ChunkingFilter(U&& decoratee)
     : DecoratedRestfulClient<T>(std::forward<U>(decoratee)),
-      has_content_length(false),
       chunking_enabled(false) {
   }
 
-  size_t send_content_length(const uint64_t len) override {
-    has_content_length = true;
-    return DecoratedRestfulClient<T>::send_content_length(len);
-  }
-
   size_t send_chunked_transfer_encoding() override {
-    has_content_length = false;
     chunking_enabled = true;
     return DecoratedRestfulClient<T>::send_header("Transfer-Encoding",
                                                   "chunked");