From e008eeac6ae553da96dba0c0cdae8def6a03b92b Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 11 Sep 2022 15:42:08 +0100 Subject: Simplify `package io` by removing different unnecessary types and calls --- core/strings/reader.odin | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'core/strings') diff --git a/core/strings/reader.odin b/core/strings/reader.odin index 9b2e10b68..a38f1fbe4 100644 --- a/core/strings/reader.odin +++ b/core/strings/reader.odin @@ -42,20 +42,6 @@ to_reader_at :: proc(r: ^Reader, s: string) -> io.Reader_At { return rr } -// init a reader to the string `s` and return an io.Byte_Reader -to_byte_reader :: proc(r: ^Reader, s: string) -> io.Byte_Reader { - reader_init(r, s) - rr, _ := io.to_byte_reader(reader_to_stream(r)) - return rr -} - -// init a reader to the string `s` and return an io.Rune_Reader -to_rune_reader :: proc(r: ^Reader, s: string) -> io.Rune_Reader { - reader_init(r, s) - rr, _ := io.to_rune_reader(reader_to_stream(r)) - return rr -} - // remaining length of the reader reader_length :: proc(r: ^Reader) -> int { if r.i >= i64(len(r.s)) { -- cgit v1.2.3