From 27fe680183e592028a40505e9253d243bd61baed Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Thu, 12 Sep 2024 20:56:19 +1000 Subject: [PATCH] cleanup --- src/Consume/Consume.cs | 3 +-- src/Polyfill/Polyfill_Memory.cs | 2 -- src/Polyfill/Polyfill_StringBuilder.cs | 1 - src/Polyfill/Polyfill_Task.cs | 1 - 4 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Consume/Consume.cs b/src/Consume/Consume.cs index 3d76ea54..77d5e80f 100644 --- a/src/Consume/Consume.cs +++ b/src/Consume/Consume.cs @@ -333,8 +333,7 @@ void ReadOnlySpan_Methods() { } - bool result; - result = readOnlySpan.EndsWith("value"); + var result = readOnlySpan.EndsWith("value"); result = readOnlySpan.EndsWith("value", StringComparison.Ordinal); result = readOnlySpan.SequenceEqual("value"); result = readOnlySpan.StartsWith("value"); diff --git a/src/Polyfill/Polyfill_Memory.cs b/src/Polyfill/Polyfill_Memory.cs index 805b49cf..e8ccbcb6 100644 --- a/src/Polyfill/Polyfill_Memory.cs +++ b/src/Polyfill/Polyfill_Memory.cs @@ -5,9 +5,7 @@ namespace Polyfills; using System; -using System.Collections.Generic; using System.Text; -using System.Runtime.InteropServices; using Link = System.ComponentModel.DescriptionAttribute; static partial class Polyfill diff --git a/src/Polyfill/Polyfill_StringBuilder.cs b/src/Polyfill/Polyfill_StringBuilder.cs index 98ef68ff..ea80d797 100644 --- a/src/Polyfill/Polyfill_StringBuilder.cs +++ b/src/Polyfill/Polyfill_StringBuilder.cs @@ -7,7 +7,6 @@ namespace Polyfills; using System.IO; using System.Reflection; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; using System.Text; using Link = System.ComponentModel.DescriptionAttribute; diff --git a/src/Polyfill/Polyfill_Task.cs b/src/Polyfill/Polyfill_Task.cs index 40c615d4..953b6900 100644 --- a/src/Polyfill/Polyfill_Task.cs +++ b/src/Polyfill/Polyfill_Task.cs @@ -5,7 +5,6 @@ namespace Polyfills; using System; -using System.Reflection; using System.Threading; using System.Threading.Tasks; using Link = System.ComponentModel.DescriptionAttribute;