diff options
| author | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2017-10-11 14:48:22 +0200 | 
|---|---|---|
| committer | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2017-10-11 14:56:58 +0200 | 
| commit | 9c7d0f544b7a4dec54e9a75ea45b985ad7fac756 (patch) | |
| tree | e0d704dbc9472723cca97a11ca1d79de8ce9feb5 /include | |
| parent | 70151c3e497f42fbfd305124ca3e9f858f90c686 (diff) | |
Improve object creation error messages
Diffstat (limited to 'include')
| -rw-r--r-- | include/astra/AstraObjectFactory.h | 15 | 
1 files changed, 0 insertions, 15 deletions
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<T, TypeList>::create(std::string _sType)  	return finder.res;  } -//---------------------------------------------------------------------------------------- -// Create with XML -template <typename T, typename TypeList> -T* CAstraObjectFactory<T, TypeList>::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; -} -//---------------------------------------------------------------------------------------- - -  //----------------------------------------------------------------------------------------  | 
