Skip to content

Commit

Permalink
Amend: remove unused methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
JohanLarsson committed Jun 8, 2016
1 parent ee5224e commit 0c01a41
Showing 1 changed file with 0 additions and 76 deletions.
76 changes: 0 additions & 76 deletions Gu.State/Internals/Errors/ErrorBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<PropertiesSettings, MemberPath, TypeErrors> 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<FieldsSettings, MemberPath, TypeErrors> 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);
Expand Down

0 comments on commit 0c01a41

Please sign in to comment.