Skip to content

Commit

Permalink
Remove unused EOF constants
Browse files Browse the repository at this point in the history
These were left over from when we still had a iterator type dedicated to
iterating over bytes, without the need for allocating Option values.

Changelog: other
  • Loading branch information
yorickpeterse committed Oct 24, 2023
1 parent 61dd8c7 commit de6a4de
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions std/src/std/iter.inko
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@
import std.cmp.Equal
import std.option.Option

# The "byte" that signals the end in a `Bytes` iterator.
let pub EOF = -1

# A generic iterator over a sequence of values of type `T`.
trait pub Iter[T] {
# Returns the next value in the iterator.
Expand Down
1 change: 0 additions & 1 deletion std/src/std/json.inko
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ import std.iter.Peekable
import std.string.(Bytes, StringBuffer, ToString)
import std.utf8

let EOF = -1
let BRACKET_OPEN = 0x5B
let BRACKET_CLOSE = 0x5D
let CURLY_OPEN = 0x7B
Expand Down
1 change: 0 additions & 1 deletion std/test/std/test_byte_array.inko
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import helpers.(hash)
import std.fmt.(fmt)
import std.iter.EOF
import std.test.Tests

fn pub tests(t: mut Tests) {
Expand Down
1 change: 0 additions & 1 deletion std/test/std/test_string.inko
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import helpers.(hash)
import std.fmt.(fmt)
import std.fs.path.Path
import std.iter.EOF
import std.test.Tests

fn pub tests(t: mut Tests) {
Expand Down

0 comments on commit de6a4de

Please sign in to comment.