From a8cc7366d498d586a11d07076d404665b58d1ef7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Carsten=20Gr=C3=A4ser?= <graeser@dune-project.org>
Date: Wed, 15 Jun 2016 23:49:31 +0200
Subject: [PATCH] [cleanup] Drop misleading begin() and end() methods

Maybe they will be reintroduced, once the return iterator-like things.
For now they are not used anyway.
---
 dune/solvers/common/algorithm.hh | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/dune/solvers/common/algorithm.hh b/dune/solvers/common/algorithm.hh
index f32f80d3..ee20732e 100644
--- a/dune/solvers/common/algorithm.hh
+++ b/dune/solvers/common/algorithm.hh
@@ -166,19 +166,13 @@ namespace Imp {
       end_(end)
     {}
 
-    const T& begin() const
-    { return begin_; }
-
-    const T& end() const
-    { return end_; }
-
     constexpr auto size() const
     {
-      return end() - begin();
+      return end_ - begin_;
     }
 
     constexpr T operator[](const T&i) const
-    { return begin()+i; }
+    { return begin_+i; }
 
   private:
     T begin_;
-- 
GitLab