[glibmm] Remove Sequence and sequence().



commit b671f98f3ad5e61831a787f6f79c673d8b64e304
Author: Murray Cumming <murrayc murrayc com>
Date:   Mon Mar 20 09:57:20 2017 +0100

     Remove Sequence and sequence().
    
    We don't use them in glibmm and gtkmm and I have never heard of anybody
    ever using them.

 glib/glibmm/containerhandle_shared.h |   37 ----------------------------------
 1 files changed, 0 insertions(+), 37 deletions(-)
---
diff --git a/glib/glibmm/containerhandle_shared.h b/glib/glibmm/containerhandle_shared.h
index dffce99..f75d26b 100644
--- a/glib/glibmm/containerhandle_shared.h
+++ b/glib/glibmm/containerhandle_shared.h
@@ -54,43 +54,6 @@ enum OwnershipType
   OWNERSHIP_DEEP /*!< Release the list, and its elements, when the container is deleted. */
 };
 
-/** Utility class holding an iterator sequence.
- * @ingroup ContHandles
- * This can be used to initialize a Glib container handle (such as
- * Glib::ArrayHandle) with an iterator sequence.  Use the helper
- * function Glib::sequence() to create a Sequence<> object.
- */
-template <class Iterator>
-class Sequence
-{
-private:
-  Iterator pbegin_;
-  Iterator pend_;
-
-public:
-  Sequence(Iterator pbegin, Iterator pend) : pbegin_(pbegin), pend_(pend) {}
-
-  Iterator begin() const { return pbegin_; }
-  Iterator end() const { return pend_; }
-  std::size_t size() const { return std::distance(pbegin_, pend_); }
-};
-
-/** Helper function to create a Glib::Sequence<> object, which
- * in turn can be used to initialize a container handle.
- * @ingroup ContHandles
- *
- * @par Usage example:
- * @code
- * combo.set_popdown_strings(Glib::sequence(foo_begin, foo_end));
- * @endcode
- */
-template <class Iterator>
-inline Sequence<Iterator>
-sequence(Iterator pbegin, Iterator pend)
-{
-  return Sequence<Iterator>(pbegin, pend);
-}
-
 namespace Container_Helpers
 {
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]