diff --git a/DDRec/include/DDRec/SurfaceManager.h b/DDRec/include/DDRec/SurfaceManager.h index 5435a7513..f12e7d508 100644 --- a/DDRec/include/DDRec/SurfaceManager.h +++ b/DDRec/include/DDRec/SurfaceManager.h @@ -68,10 +68,6 @@ namespace dd4hep { protected : - - /// initialize all known surface maps - void initialize(const Detector& theDetector) ; - /// name has to be the name of a single detector! not e.g. tracker or world. const SurfaceMap& getOrConstruct(const std::string name); diff --git a/DDRec/src/SurfaceManager.cpp b/DDRec/src/SurfaceManager.cpp index 6aea7aecb..563ad2ead 100644 --- a/DDRec/src/SurfaceManager.cpp +++ b/DDRec/src/SurfaceManager.cpp @@ -146,43 +146,6 @@ namespace dd4hep { return maps[0].get().second; } - void SurfaceManager::initialize(const Detector& description) { - - const std::vector& types = description.detectorTypes() ; - - for(unsigned i=0,N=types.size();i& dets = description.detectors( types[i] ) ; - - for(unsigned j=0,M=dets.size();jid(), surf ); - - // enter surface into map for detector type - _map[ types[i] ].emplace(surf->id(), surf ); - - // enter surface into world map - _map[ "world" ].emplace(surf->id(), surf ); - - } - } - } - - } - std::string SurfaceManager::toString() const { std::stringstream sstr ;