From fa30d51df44c2a94a19fc5afde16af59ea130a0f Mon Sep 17 00:00:00 2001 From: Anna Date: Sat, 10 Apr 2021 18:09:32 -0400 Subject: [PATCH] refactor: take advantage of implicit conversion --- XivCommon/Functions/BattleTalk.cs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/XivCommon/Functions/BattleTalk.cs b/XivCommon/Functions/BattleTalk.cs index 11e2f20..aa76d23 100755 --- a/XivCommon/Functions/BattleTalk.cs +++ b/XivCommon/Functions/BattleTalk.cs @@ -66,18 +66,6 @@ namespace XivCommon.Functions { this.Show(sender.Encode(), message.Encode(), options); } - public void Show(string sender, string message, BattleTalkOptions? options = null) { - this.Show(Encoding.UTF8.GetBytes(sender), Encoding.UTF8.GetBytes(message), options); - } - - public void Show(SeString sender, string message, BattleTalkOptions? options = null) { - this.Show(sender.Encode(), Encoding.UTF8.GetBytes(message), options); - } - - public void Show(string sender, SeString message, BattleTalkOptions? options = null) { - this.Show(Encoding.UTF8.GetBytes(sender), message.Encode(), options); - } - private void Show(byte[] sender, byte[] message, BattleTalkOptions? options) { if (sender.Length == 0) { throw new ArgumentException("sender cannot be empty", nameof(sender));