From 9f9a79fd1b964cb6691db1b777b7db80c95122eb Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Wed, 10 Mar 2021 11:05:38 +0000 Subject: [PATCH] Remove unused Util class --- X10D/src/Util.cs | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 X10D/src/Util.cs diff --git a/X10D/src/Util.cs b/X10D/src/Util.cs deleted file mode 100644 index e7cf77d..0000000 --- a/X10D/src/Util.cs +++ /dev/null @@ -1,21 +0,0 @@ -using System; - -namespace X10D -{ - internal static class Util - { - public static void SwapIfNeeded(ref byte[] buffer, Endianness endianness) - { - if (buffer is null) - { - throw new ArgumentNullException(nameof(buffer)); - } - - var swapNeeded = BitConverter.IsLittleEndian == (endianness == Endianness.BigEndian); - if (swapNeeded) - { - Array.Reverse(buffer); - } - } - } -}