[Modify] Remove it

This commit is contained in:
sta 2018-09-20 19:24:36 +09:00
parent 174954f109
commit 55d848a8bf

View File

@ -539,26 +539,6 @@ namespace WebSocketSharp.Net
output.WriteByte ((byte) _hexChars[idx]); output.WriteByte ((byte) _hexChars[idx]);
} }
private static void urlPathEncode (char c, Stream output)
{
if (c > 32 && c < 127) {
output.WriteByte ((byte) c);
return;
}
var bytes = Encoding.UTF8.GetBytes (c.ToString ());
foreach (var b in bytes) {
output.WriteByte ((byte) '%');
var i = (int) b;
var idx = i >> 4;
output.WriteByte ((byte) _hexChars[idx]);
idx = i & 0x0F;
output.WriteByte ((byte) _hexChars[idx]);
}
}
private static void urlPathEncode (char c, StringBuilder output) private static void urlPathEncode (char c, StringBuilder output)
{ {
if (c > 32 && c < 127) { if (c > 32 && c < 127) {