diff options
author | bptato <nincsnevem662@gmail.com> | 2024-02-11 00:40:51 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-02-11 00:40:51 +0100 |
commit | b0583b4760a11bd062781e0ea948c61c8b66ff8f (patch) | |
tree | 5bfb46cb1aa57d62fb40d6b6869ac8a875071561 /src/io | |
parent | d0690cfea6a87c7b7d801b968b5a1c85d1e99b4f (diff) | |
download | chawan-b0583b4760a11bd062781e0ea948c61c8b66ff8f.tar.gz |
Get rid of LOAD_PIPE BufferSource
Instead, use a stream: scheme and associate hostnames with file descriptors directly from the pager.
Diffstat (limited to 'src/io')
-rw-r--r-- | src/io/serialize.nim | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/io/serialize.nim b/src/io/serialize.nim index 0c9cfd8e..f27fb40d 100644 --- a/src/io/serialize.nim +++ b/src/io/serialize.nim @@ -389,7 +389,6 @@ proc swrite*(stream: Stream, source: BufferSource) = case source.t of CLONE: stream.swrite(source.clonepid) of LOAD_REQUEST: stream.swrite(source.request) - of LOAD_PIPE: stream.swrite(source.fd) stream.swrite(source.location) stream.swrite(source.contentType) stream.swrite(source.charset) @@ -404,9 +403,6 @@ proc sread*(stream: Stream, source: var BufferSource) = of LOAD_REQUEST: source = BufferSource(t: LOAD_REQUEST) stream.sread(source.request) - of LOAD_PIPE: - source = BufferSource(t: LOAD_PIPE) - stream.sread(source.fd) stream.sread(source.location) stream.sread(source.contentType) stream.sread(source.charset) @@ -416,6 +412,5 @@ func slen*(source: BufferSource): int = case source.t of CLONE: result += slen(source.clonepid) of LOAD_REQUEST: result += slen(source.request) - of LOAD_PIPE: result += slen(source.fd) result += slen(source.location) result += slen(source.contentType) |