Simplify package io by removing different unnecessary types and calls

This commit is contained in:
gingerBill
2022-09-11 15:42:08 +01:00
parent 25e330500f
commit e008eeac6a
4 changed files with 53 additions and 122 deletions
-4
View File
@@ -25,10 +25,6 @@ _read_writer_vtable := &io.Stream_VTable{
b := (^Read_Writer)(s.stream_data).r
return reader_read(b, p)
},
impl_read_byte = proc(s: io.Stream) -> (c: byte, err: io.Error) {
b := (^Read_Writer)(s.stream_data).r
return reader_read_byte(b)
},
impl_unread_byte = proc(s: io.Stream) -> io.Error {
b := (^Read_Writer)(s.stream_data).r
return reader_unread_byte(b)