From 851574de920ac4c9eb07fb3858fce614a46dcb6d Mon Sep 17 00:00:00 2001 From: Steve Bohlen Date: Mon, 9 Jul 2012 16:08:47 -0400 Subject: [PATCH] removing dead code --- .../Objects/Factory/ObjectFactoryUtils.cs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/Spring/Spring.Core/Objects/Factory/ObjectFactoryUtils.cs b/src/Spring/Spring.Core/Objects/Factory/ObjectFactoryUtils.cs index 456640b0..99887898 100644 --- a/src/Spring/Spring.Core/Objects/Factory/ObjectFactoryUtils.cs +++ b/src/Spring/Spring.Core/Objects/Factory/ObjectFactoryUtils.cs @@ -212,25 +212,7 @@ namespace Spring.Objects.Factory public static IList ObjectNamesForTypeIncludingAncestors( IListableObjectFactory factory, Type type) { - return factory.GetObjectNamesForType(type); - - List result = new List(); - result.AddRange(factory.GetObjectNamesForType(type)); - IListableObjectFactory pof = GetParentListableObjectFactoryIfAny(factory); - if (pof != null) - { - IHierarchicalObjectFactory hof = (IHierarchicalObjectFactory)factory; - IList parentsResult = ObjectNamesForTypeIncludingAncestors(pof, type); - foreach (string objectName in parentsResult) - { - if (!result.Contains(objectName) && !hof.ContainsLocalObject(objectName)) - { - result.Add(objectName); - } - } - } - return result; } ///