remove unused code, mostly imports

This commit is contained in:
Karl Seguin
2025-05-05 13:23:28 +08:00
parent ca3fa3dc40
commit b8e5e130b9
32 changed files with 5 additions and 87 deletions

View File

@@ -30,8 +30,6 @@ const Completion = IO.Completion;
const AcceptError = IO.AcceptError;
const RecvError = IO.RecvError;
const SendError = IO.SendError;
const CloseError = IO.CloseError;
const CancelError = IO.CancelOneError;
const TimeoutError = IO.TimeoutError;
const Loop = @import("runtime/loop.zig").Loop;
@@ -947,10 +945,6 @@ const OpCode = enum(u8) {
pong = 128 | 10,
};
const CloseCode = enum {
timeout,
};
fn fillWebsocketHeader(buf: std.ArrayListUnmanaged(u8)) []const u8 {
// can't use buf[0..10] here, because the header length
// is variable. If it's just 2 bytes, for example, we need the