From a20830ccaee6d2ebe501d2fb8df3e9bb209ce626 Mon Sep 17 00:00:00 2001 From: uholeschak Date: Fri, 20 Dec 2024 21:34:50 +0100 Subject: [PATCH] Removed System.IO.Hashing --- Tools/ApkUncompress2/ApkUncompress2.csproj | 1 - .../Utilities/MonoAndroidHelper.Basic.cs | 12 ------------ 2 files changed, 13 deletions(-) diff --git a/Tools/ApkUncompress2/ApkUncompress2.csproj b/Tools/ApkUncompress2/ApkUncompress2.csproj index 761e2ec64..deda2d715 100644 --- a/Tools/ApkUncompress2/ApkUncompress2.csproj +++ b/Tools/ApkUncompress2/ApkUncompress2.csproj @@ -11,7 +11,6 @@ - diff --git a/Tools/ApkUncompress2/Utilities/MonoAndroidHelper.Basic.cs b/Tools/ApkUncompress2/Utilities/MonoAndroidHelper.Basic.cs index e87e3b7a9..20a1b24ea 100644 --- a/Tools/ApkUncompress2/Utilities/MonoAndroidHelper.Basic.cs +++ b/Tools/ApkUncompress2/Utilities/MonoAndroidHelper.Basic.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using System.Globalization; -using System.IO.Hashing; using System.Text; using Xamarin.Android.Tools; @@ -228,15 +227,4 @@ public static ulong GetMangledAssemblyNameSizeOverhead () } public static byte[] Utf8StringToBytes (string str) => Encoding.UTF8.GetBytes (str); - - public static ulong GetXxHash (string str, bool is64Bit) => GetXxHash (Utf8StringToBytes (str), is64Bit); - - public static ulong GetXxHash (byte[] stringBytes, bool is64Bit) - { - if (is64Bit) { - return XxHash3.HashToUInt64 (stringBytes); - } - - return (ulong)XxHash32.HashToUInt32 (stringBytes); - } }