Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r67686 - sandbox/guild/pool/boost/pool
From: chankwanting_at_[hidden]
Date: 2011-01-05 13:55:42


Author: ktchan
Date: 2011-01-05 13:55:41 EST (Wed, 05 Jan 2011)
New Revision: 67686
URL: http://svn.boost.org/trac/boost/changeset/67686

Log:
Remove old commented out code leftover that has been around forever.

Remove comments re parameters that has been around since the first commit from 2001 being "extension".
Text files modified:
   sandbox/guild/pool/boost/pool/object_pool.hpp | 2 --
   sandbox/guild/pool/boost/pool/pool.hpp | 6 ------
   2 files changed, 0 insertions(+), 8 deletions(-)

Modified: sandbox/guild/pool/boost/pool/object_pool.hpp
==============================================================================
--- sandbox/guild/pool/boost/pool/object_pool.hpp (original)
+++ sandbox/guild/pool/boost/pool/object_pool.hpp 2011-01-05 13:55:41 EST (Wed, 05 Jan 2011)
@@ -52,7 +52,6 @@
     { return *(static_cast<void **>(ptr)); }
 
   public:
- // This constructor parameter is an extension!
     explicit object_pool(const size_type next_size = 32)
     :pool<UserAllocator>(sizeof(T), next_size) { }
 
@@ -90,7 +89,6 @@
       (free)(chunk);
     }
 
- // These functions are extensions!
     size_type get_next_size() const { return store().get_next_size(); }
     void set_next_size(const size_type x) { store().set_next_size(x); }
 };

Modified: sandbox/guild/pool/boost/pool/pool.hpp
==============================================================================
--- sandbox/guild/pool/boost/pool/pool.hpp (original)
+++ sandbox/guild/pool/boost/pool/pool.hpp 2011-01-05 13:55:41 EST (Wed, 05 Jan 2011)
@@ -171,10 +171,6 @@
       // defined for pointers to objects that are 1) in the same array, or
       // 2) subobjects of the same object [5.9/2].
       // The functor objects guarantee a total order for any pointer [20.3.3/8]
-//WAS:
-// return (std::less_equal<void *>()(static_cast<void *>(i), chunk)
-// && std::less<void *>()(chunk,
-// static_cast<void *>(i + sizeof_i)));
       std::less_equal<void *> lt_eq;
       std::less<void *> lt;
       return (lt_eq(i, chunk) && lt(chunk, i + sizeof_i));
@@ -191,7 +187,6 @@
     { return *(static_cast<void **>(ptr)); }
 
   public:
- // The second parameter here is an extension!
     // pre: npartition_size != 0 && nnext_size != 0
     explicit pool(const size_type nrequested_size,
         const size_type nnext_size = 32)
@@ -209,7 +204,6 @@
     // Returns true if memory was actually deallocated
     bool purge_memory();
 
- // These functions are extensions!
     size_type get_next_size() const { return next_size; }
     void set_next_size(const size_type nnext_size) { next_size = start_size = nnext_size; }
     size_type get_requested_size() const { return requested_size; }


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk