From 53028a9cfdddfb815e692cdc38ad8d95cb730863 Mon Sep 17 00:00:00 2001
From: Elias Pipping <elias.pipping@fu-berlin.de>
Date: Fri, 31 May 2013 17:03:19 +0200
Subject: [PATCH] Dead code

---
 dune/tectonic/ellipticenergy.hh | 20 --------------------
 1 file changed, 20 deletions(-)

diff --git a/dune/tectonic/ellipticenergy.hh b/dune/tectonic/ellipticenergy.hh
index 8278ca83..6ac8fef6 100644
--- a/dune/tectonic/ellipticenergy.hh
+++ b/dune/tectonic/ellipticenergy.hh
@@ -49,26 +49,6 @@ template <int dim> class EllipticEnergy {
     }
   }
 
-  // returns false if the direction is tangential
-  void descentDirectionNew(SmallVector const &x, SmallVector &ret) const {
-    SmallVector pg;
-    gradient(x, pg);
-    SmallVector mg;
-    gradient(x, mg);
-    double const pgx = pg * x;
-    double const mgx = mg * x;
-    if (pgx >= 0 && mgx >= 0) {
-      ret = pg;
-      ret *= -1;
-    } else if (pgx <= 0 && mgx <= 0) {
-      ret = mg;
-      ret *= -1;
-    } else {
-      // We know that no descent can be expected in the tangential direction
-      ret = SmallVector(0);
-    }
-  }
-
   bool descentDirection(SmallVector const &x, SmallVector &ret) const {
     // Check the squared norm rather than each component because
     // complementaryProjection() divides by it
-- 
GitLab