diff --git a/docs/naming.md b/docs/naming.md index 2d855a4b19..535fafd56a 100644 --- a/docs/naming.md +++ b/docs/naming.md @@ -617,7 +617,7 @@ public static string NameWithParent(this Type type) return type.Name; } ``` -snippet source | anchor +snippet source | anchor diff --git a/src/Verify/Extensions.cs b/src/Verify/Extensions.cs index a16a6ba53c..7451939759 100644 --- a/src/Verify/Extensions.cs +++ b/src/Verify/Extensions.cs @@ -52,20 +52,6 @@ static bool CanReadLength(this Stream stream) public static string TrimPreamble(this string text) => text.TrimStart('\uFEFF'); - public static bool Contains(this StringBuilder builder, char ch) - { - for (var index = 0; index < builder.Length; index++) - { - var item = builder[index]; - if (ch == item) - { - return true; - } - } - - return false; - } - public static void Enqueue(this Queue queue, IEnumerable items) { foreach (var item in items)