From e2dab381397b70355c01c32597c4c60c7f8e1e17 Mon Sep 17 00:00:00 2001 From: sta Date: Fri, 14 Dec 2018 20:46:59 +0900 Subject: [PATCH] [Modify] Remove it --- websocket-sharp/Net/HttpUtility.cs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/websocket-sharp/Net/HttpUtility.cs b/websocket-sharp/Net/HttpUtility.cs index e4396279..f53ac6e6 100644 --- a/websocket-sharp/Net/HttpUtility.cs +++ b/websocket-sharp/Net/HttpUtility.cs @@ -592,18 +592,6 @@ namespace WebSocketSharp.Net } } - private static void writeCharBytes (char c, IList buffer, Encoding encoding) - { - if (c > 255) { - foreach (var b in encoding.GetBytes (new[] { c })) - buffer.Add (b); - - return; - } - - buffer.Add ((byte) c); - } - #endregion #region Internal Methods