From 91b0455df6968125108f2da32f2cd59da07d5760 Mon Sep 17 00:00:00 2001
From: Christian Engwer <christi@dune-project.org>
Date: Fri, 22 Jul 2005 12:48:07 +0000
Subject: [PATCH] removed the refelem singleton

[[Imported from SVN: r2445]]
---
 grid/sgrid/sgrid.cc | 17 -----------------
 1 file changed, 17 deletions(-)

diff --git a/grid/sgrid/sgrid.cc b/grid/sgrid/sgrid.cc
index 8c3db9e4c..0b3511765 100644
--- a/grid/sgrid/sgrid.cc
+++ b/grid/sgrid/sgrid.cc
@@ -16,17 +16,6 @@ namespace Dune {
   //************************************************************************
   // SGeometry
 
-  // singleton holding reference elements
-  template<int dim, class GridImp>
-  struct SReferenceElement {
-    static Dune::Geometry<dim,dim,GridImp,SGeometry> refelem;
-  };
-
-  // initialize static variable with bool constructor (which makes reference elements)
-  template<int dim, class GridImp>
-  Dune::Geometry<dim,dim,GridImp,SGeometry>
-  SReferenceElement<dim,GridImp>::refelem(SGeometry<dim,dim,GridImp>(true));
-
 #if 0
   // members for SGeometry, general case dim!=0
   template<int mydim, int cdim, class GridImp>
@@ -94,12 +83,6 @@ namespace Dune {
     }
   }
 
-  template<int mydim, int cdim, class GridImp>
-  inline const Dune::Geometry<mydim,mydim,GridImp,Dune::SGeometry>& SGeometry<mydim,cdim,GridImp>::refelem ()
-  {
-    return SReferenceElement<mydim,GridImp>::refelem;
-  }
-
   template<int mydim, int cdim, class GridImp>
   inline int SGeometry<mydim,cdim,GridImp>::corners () const
   {
-- 
GitLab