From ee6bb34df0731bb5ce979e605ffbae7662c714d4 Mon Sep 17 00:00:00 2001
From: Andrei Gheata <Andrei.Gheata@cern.ch>
Date: Fri, 12 Oct 2012 07:23:03 +0000
Subject: [PATCH] Removed check by name for AddNode if a node with same name
 exists.

git-svn-id: http://root.cern.ch/svn/root/trunk@46484 27541ba8-7e3a-0410-8455-c3a389f83636
---
 geom/geom/src/TGeoVolume.cxx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/geom/geom/src/TGeoVolume.cxx b/geom/geom/src/TGeoVolume.cxx
index 1f150432534..ae2c217741b 100644
--- a/geom/geom/src/TGeoVolume.cxx
+++ b/geom/geom/src/TGeoVolume.cxx
@@ -902,8 +902,8 @@ void TGeoVolume::AddNode(const TGeoVolume *vol, Int_t copy_no, TGeoMatrix *mat,
    node->SetMotherVolume(this);
    fNodes->Add(node);
    TString name = TString::Format("%s_%d", vol->GetName(), copy_no);
-   if (fNodes->FindObject(name))
-      Warning("AddNode", "Volume %s : added node %s with same name", GetName(), name.Data());
+//   if (fNodes->FindObject(name))
+//      Warning("AddNode", "Volume %s : added node %s with same name", GetName(), name.Data());
    node->SetName(name);
    node->SetNumber(copy_no);
 }
-- 
GitLab