From 9c7d0f544b7a4dec54e9a75ea45b985ad7fac756 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Wed, 11 Oct 2017 14:48:22 +0200 Subject: Improve object creation error messages --- include/astra/AstraObjectFactory.h | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'include/astra') diff --git a/include/astra/AstraObjectFactory.h b/include/astra/AstraObjectFactory.h index 746e27a..5db9167 100644 --- a/include/astra/AstraObjectFactory.h +++ b/include/astra/AstraObjectFactory.h @@ -126,21 +126,6 @@ T* CAstraObjectFactory::create(std::string _sType) return finder.res; } -//---------------------------------------------------------------------------------------- -// Create with XML -template -T* CAstraObjectFactory::create(const Config& _cfg) -{ - T* object = create(_cfg.self.getAttribute("type")); - if (object == NULL) return NULL; - if (object->initialize(_cfg)) - return object; - delete object; - return NULL; -} -//---------------------------------------------------------------------------------------- - - //---------------------------------------------------------------------------------------- -- cgit v1.2.3