diff --git a/Dalamud/Utility/Util.cs b/Dalamud/Utility/Util.cs index ecf672caf..3d472a2c7 100644 --- a/Dalamud/Utility/Util.cs +++ b/Dalamud/Utility/Util.cs @@ -35,13 +35,6 @@ public static class Util private static ulong moduleStartAddr; private static ulong moduleEndAddr; - /// - /// Gets an httpclient for usage. - /// Do NOT await this. - /// - [Obsolete($"Use Service<{nameof(HappyHttpClient)}> instead.")] - public static HttpClient HttpClient { get; } = Service.Get().SharedHttpClient; - /// /// Gets the assembly version of Dalamud. /// @@ -493,21 +486,6 @@ public static class Util return Encoding.UTF8.GetString(mso.ToArray()); } - /// - /// Copy one stream to another. - /// - /// The source stream. - /// The destination stream. - /// The maximum length to copy. - [Obsolete("Use Stream.CopyTo() instead", true)] - public static void CopyTo(Stream src, Stream dest, int len = 4069) - { - var bytes = new byte[len]; - int cnt; - - while ((cnt = src.Read(bytes, 0, bytes.Length)) != 0) dest.Write(bytes, 0, cnt); - } - /// /// Heuristically determine if Dalamud is running on Linux/WINE. ///