diff --git a/Gu.State/Internals/Errors/ErrorBuilder.cs b/Gu.State/Internals/Errors/ErrorBuilder.cs index 487c0853..348460a9 100644 --- a/Gu.State/Internals/Errors/ErrorBuilder.cs +++ b/Gu.State/Internals/Errors/ErrorBuilder.cs @@ -195,82 +195,6 @@ internal static TypeErrorsBuilder VerifyRecursive( return typeErrors; } - [Obsolete] - internal static TypeErrorsBuilder VerifyRecursive( - this TypeErrorsBuilder typeErrors, - Type type, - PropertiesSettings settings, - MemberPath memberPath, - Func getPropertyErrors) - { - throw new NotImplementedException("message"); - - //if (settings.ReferenceHandling == ReferenceHandling.References) - //{ - // return typeErrors; - //} - - //typeErrors = VerifyEnumerableRecursively(typeErrors, type, settings, memberPath, getPropertyErrors); - - //var propertyInfos = type.GetProperties(settings.BindingFlags); - //foreach (var propertyInfo in propertyInfos) - //{ - // if (propertyInfo.GetIndexParameters().Length > 0) - // { - // continue; - // } - - // if (settings.IsIgnoringProperty(propertyInfo)) - // { - // continue; - // } - - // if (memberPath == null) - // { - // memberPath = new MemberPath(type); - // } - - // typeErrors = VerifyMemberRecursively(typeErrors, type, settings, memberPath, getPropertyErrors, propertyInfo); - //} - - //return typeErrors; - } - - [Obsolete] - internal static TypeErrorsBuilder VerifyRecursive( - this TypeErrorsBuilder typeErrors, - Type type, - FieldsSettings settings, - MemberPath memberPath, - Func getFieldErrors) - { - throw new NotImplementedException("message"); - //if (settings.ReferenceHandling == ReferenceHandling.References) - //{ - // return typeErrors; - //} - - //typeErrors = VerifyEnumerableRecursively(typeErrors, type, settings, memberPath, getFieldErrors); - - //var fields = type.GetFields(settings.BindingFlags); - //foreach (var fieldInfo in fields) - //{ - // if (settings.IsIgnoringField(fieldInfo)) - // { - // continue; - // } - - // if (memberPath == null) - // { - // memberPath = new MemberPath(type); - // } - - // typeErrors = VerifyMemberRecursively(typeErrors, type, settings, memberPath, getFieldErrors, fieldInfo); - //} - - //return typeErrors; - } - internal static TypeErrorsBuilder CreateIfNull(this TypeErrorsBuilder errors, Type type) { return errors ?? new TypeErrorsBuilder(type);