removing dead code

This commit is contained in:
Steve Bohlen
2012-07-09 16:08:47 -04:00
parent d0d3038b82
commit 851574de92

View File

@@ -212,25 +212,7 @@ namespace Spring.Objects.Factory
public static IList<string> ObjectNamesForTypeIncludingAncestors(
IListableObjectFactory factory, Type type)
{
return factory.GetObjectNamesForType(type);
List<string> result = new List<string>();
result.AddRange(factory.GetObjectNamesForType(type));
IListableObjectFactory pof = GetParentListableObjectFactoryIfAny(factory);
if (pof != null)
{
IHierarchicalObjectFactory hof = (IHierarchicalObjectFactory)factory;
IList<string> parentsResult = ObjectNamesForTypeIncludingAncestors(pof, type);
foreach (string objectName in parentsResult)
{
if (!result.Contains(objectName) && !hof.ContainsLocalObject(objectName))
{
result.Add(objectName);
}
}
}
return result;
}
/// <summary>