]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Synced with libecap::Body simplifications.
authorAlex Rousskov <rousskov@measurement-factory.com>
Tue, 30 Sep 2008 04:43:46 +0000 (22:43 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Tue, 30 Sep 2008 04:43:46 +0000 (22:43 -0600)
src/eCAP/MessageRep.cc
src/eCAP/MessageRep.h

index fc99cccafa915a12dc0ba08646433df682b26bf4..100caa76f97e0e1a8c0d6fac1642abcce86b2b0a 100644 (file)
@@ -317,26 +317,6 @@ Ecap::BodyRep::bodySize() const
     return !theBody ? BodySize() : BodySize(theBody->bodySize());
 }
 
-Ecap::BodyRep::size_type
-Ecap::BodyRep::consumedSize() const
-{
-    return theBody->consumedSize();
-}
-
-bool
-Ecap::BodyRep::productionEnded() const
-{
-    return theBody->productionEnded();
-}
-   
-Ecap::BodyRep::Area
-Ecap::BodyRep::prefix(Ecap::BodyRep::size_type size) const
-{
-    Must(size <= static_cast<size_type>(theBody->buf().contentSize()));
-    // XXX: optimize by making theBody a shared_ptr (see FromTemp*() src)
-    return Area::FromTempBuffer(theBody->buf().content(), size);
-}
-
 
 /* MessageRep */
 
index ee6ec340c1bba7d7f7e2ac3ac5e9023d6657cabb..74032664d01b35cccc0ff45f9229d829d78cc1b3 100644 (file)
@@ -119,9 +119,7 @@ private:
 class BodyRep: public libecap::Body
 {
 public:
-    typedef libecap::Area Area;
     typedef libecap::BodySize BodySize;
-    using libecap::Body::size_type;
 
 public:
     BodyRep(const BodyPipe::Pointer &aBody); // using NULL pointer? see tie()
@@ -130,9 +128,6 @@ public:
 
     // libecap::Body API
     virtual BodySize bodySize() const;
-    virtual size_type consumedSize() const;
-    virtual bool productionEnded() const;
-    virtual Area prefix(size_type size) const;
 
 private:
     BodyPipe::Pointer theBody; // the body being translated to libecap