]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TGeant4/TG4NameMap.cxx
Echo corrected
[u/mrichter/AliRoot.git] / TGeant4 / TG4NameMap.cxx
index d6130ec8652fc44694fc5e2bbd27aa64fd10648a..e22b1b01304c9c4860e5093b9dafbc128b1647df 100644 (file)
@@ -109,11 +109,6 @@ void TG4NameMap::Clear()
 // Clears the map.
 // ---
 
-  if (fMap.size()>0){
-    for (MapIterator i=fMap.begin(); i != fMap.end(); i++) {
-      delete (*i).second;
-    }
-    fMap.clear();
-  }
+  fMap.clear();
   fSecond = "Undefined";
 }