From a8589b51746191d0770502f7cf1351b1843c3645 Mon Sep 17 00:00:00 2001
From: Oliver Sander <sander@dune-project.org>
Date: Wed, 4 May 2005 12:03:13 +0000
Subject: [PATCH] eliminate some dead code

[[Imported from SVN: r2006]]
---
 io/file/amiramesh/amirameshwriter.cc | 44 ----------------------------
 1 file changed, 44 deletions(-)

diff --git a/io/file/amiramesh/amirameshwriter.cc b/io/file/amiramesh/amirameshwriter.cc
index 05ab634e8..d63d2c4cf 100644
--- a/io/file/amiramesh/amirameshwriter.cc
+++ b/io/file/amiramesh/amirameshwriter.cc
@@ -67,26 +67,6 @@ void Dune::AmiraMeshWriter<GridType>::writeGrid(const GridType& grid,
 
   }
 
-#if 0
-  // handle materials
-  HxParamBundle* materials = new HxParamBundle("Materials");
-
-  for (k=0; k<=maxSubDom; k++) {
-
-    char buffer[100];
-    sprintf(buffer, "Material%d", k);
-    HxParamBundle* newMaterial = new HxParamBundle(buffer);
-
-    HxParameter* newId = new HxParameter("Id", k);
-    newMaterial->insert(newId);
-
-    materials->insert(newMaterial);
-
-  }
-
-  am_geometry.parameters.insert(materials);
-#endif
-
   /* write element section to file */
   AmiraMesh::Location* element_loc = NULL;
 
@@ -247,30 +227,6 @@ void Dune::AmiraMeshWriter<GridType>::writeGrid(const GridType& grid,
 
   }
 
-#if 0
-  // handle materials
-  HxParamBundle* materials = new HxParamBundle("Materials");
-
-  for (k=0; k<=maxSubDom; k++) {
-
-    char buffer[100];
-    sprintf(buffer, "Material%d", k);
-    HxParamBundle* newMaterial = new HxParamBundle(buffer);
-
-    HxParameter* newId = new HxParameter("Id", k);
-    newMaterial->insert(newId);
-
-    materials->insert(newMaterial);
-
-  }
-
-  am_geometry.parameters.insert(materials);
-
-  ncomp = 0;
-  for(i=0; i<NVECTYPES; i++)
-    ncomp = std::max(ncomp,VD_NCMPS_IN_TYPE(sol, i));
-#endif
-
   /* write element section to geo - file */
   AmiraMesh::Location* element_loc = NULL;
 
-- 
GitLab