From 6cfd1127915877adf1836c0c250a394f89085354 Mon Sep 17 00:00:00 2001 From: adelikat Date: Fri, 12 May 2017 13:28:49 -0500 Subject: [PATCH] remove C64Util since the methods weren't being used, at least one was highly dubious, and they would be better served being in a common library if deemed needed --- .../BizHawk.Emulation.Cores.csproj | 1 - .../Computers/Commodore64/C64Util.cs | 37 ------------------- 2 files changed, 38 deletions(-) delete mode 100644 BizHawk.Emulation.Cores/Computers/Commodore64/C64Util.cs diff --git a/BizHawk.Emulation.Cores/BizHawk.Emulation.Cores.csproj b/BizHawk.Emulation.Cores/BizHawk.Emulation.Cores.csproj index 8469b45cf4..f2b01ceb2d 100644 --- a/BizHawk.Emulation.Cores/BizHawk.Emulation.Cores.csproj +++ b/BizHawk.Emulation.Cores/BizHawk.Emulation.Cores.csproj @@ -209,7 +209,6 @@ - diff --git a/BizHawk.Emulation.Cores/Computers/Commodore64/C64Util.cs b/BizHawk.Emulation.Cores/Computers/Commodore64/C64Util.cs deleted file mode 100644 index 24b5405c35..0000000000 --- a/BizHawk.Emulation.Cores/Computers/Commodore64/C64Util.cs +++ /dev/null @@ -1,37 +0,0 @@ -using System.Text; - -namespace BizHawk.Emulation.Cores.Computers.Commodore64 -{ - public static class C64Util - { - public static string ToBinary(int n, int charsmin) - { - var result = new StringBuilder(""); - - while (n > 0 || charsmin > 0) - { - result.Insert(0, (n & 0x1) != 0 ? "1" : "0"); - n >>= 1; - if (charsmin > 0) - charsmin--; - } - - return result.ToString(); - } - - public static string ToHex(int n, int charsmin) - { - var result = new StringBuilder(""); - - while (n > 0 || charsmin > 0) - { - result.Insert(0, "0123456789ABCDEF".Substring(n & 0xF, 1)); - n >>= 4; - if (charsmin > 0) - charsmin--; - } - - return result.ToString(); - } - } -}