Skip to content

Commit

Permalink
redundant method
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Oct 15, 2023
1 parent e322371 commit 2ef7af1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
2 changes: 1 addition & 1 deletion docs/naming.md
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ public static string NameWithParent(this Type type)
return type.Name;
}
```
<sup><a href='/src/Verify/Extensions.cs#L99-L111' title='Snippet source file'>snippet source</a> | <a href='#snippet-namewithparent' title='Start of snippet'>anchor</a></sup>
<sup><a href='/src/Verify/Extensions.cs#L85-L97' title='Snippet source file'>snippet source</a> | <a href='#snippet-namewithparent' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->


Expand Down
14 changes: 0 additions & 14 deletions src/Verify/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<T>(this Queue<T> queue, IEnumerable<T> items)
{
foreach (var item in items)
Expand Down

0 comments on commit 2ef7af1

Please sign in to comment.