[Modify] Remove it

This commit is contained in:
sta 2018-11-06 20:37:20 +09:00
parent ce5a6f6e4a
commit ef3a57aba2

View File

@ -792,31 +792,6 @@ namespace WebSocketSharp.Net
return null; 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 ( internal static byte[] InternalUrlEncodeToBytes (
byte[] bytes, int offset, int count byte[] bytes, int offset, int count
) )