From ef3a57aba28c1a54e0fe25e417053c44c4a830ff Mon Sep 17 00:00:00 2001 From: sta Date: Tue, 6 Nov 2018 20:37:20 +0900 Subject: [PATCH] [Modify] Remove it --- websocket-sharp/Net/HttpUtility.cs | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/websocket-sharp/Net/HttpUtility.cs b/websocket-sharp/Net/HttpUtility.cs index cc4d4ce4..ba6ab8ef 100644 --- a/websocket-sharp/Net/HttpUtility.cs +++ b/websocket-sharp/Net/HttpUtility.cs @@ -792,31 +792,6 @@ namespace WebSocketSharp.Net return null; } - internal static byte[] InternalUrlDecodeToBytes (byte[] bytes, int offset, int count) - { - using (var res = new MemoryStream ()) { - var end = offset + count; - for (var i = offset; i < end; i++) { - var c = (char) bytes[i]; - if (c == '+') { - c = ' '; - } - else if (c == '%' && i < end - 2) { - var xchar = getChar (bytes, i + 1, 2); - if (xchar != -1) { - c = (char) xchar; - i += 2; - } - } - - res.WriteByte ((byte) c); - } - - res.Close (); - return res.ToArray (); - } - } - internal static byte[] InternalUrlEncodeToBytes ( byte[] bytes, int offset, int count )