From 2ef7af1f8e846eb1fb343728d628878eb984c505 Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Sun, 15 Oct 2023 21:17:52 +1100 Subject: [PATCH] redundant method --- docs/naming.md | 2 +- src/Verify/Extensions.cs | 14 -------------- 2 files changed, 1 insertion(+), 15 deletions(-) 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)