aboutsummaryrefslogtreecommitdiff
path: root/core/unicode
diff options
context:
space:
mode:
authorKevin Watters <kevinwatters@gmail.com>2019-10-28 11:13:47 -0400
committerKevin Watters <kevinwatters@gmail.com>2019-10-28 11:13:47 -0400
commitb5fdb3f855b145564836c7936691197f1021308d (patch)
tree20a0192f5998bed81d824dbdceed44e1d3c72a42 /core/unicode
parent416ff149bd0f3ae1ff7d8093450cf42fc4aa3994 (diff)
Remove unused variables in utf8.odin.
Diffstat (limited to 'core/unicode')
-rw-r--r--core/unicode/utf8/utf8.odin3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/unicode/utf8/utf8.odin b/core/unicode/utf8/utf8.odin
index c30f7b733..bbf3994cd 100644
--- a/core/unicode/utf8/utf8.odin
+++ b/core/unicode/utf8/utf8.odin
@@ -193,7 +193,6 @@ rune_string_at_pos :: proc(s: string, pos: int) -> string {
}
rune_at :: proc(s: string, byte_index: int) -> rune {
- str := s[byte_index:];
r, _ := decode_rune_in_string(s[byte_index:]);
return r;
}
@@ -206,7 +205,7 @@ rune_offset :: proc(s: string, pos: int, start: int = 0) -> int {
}
i := 0;
- for c, offset in s[start:] {
+ for _, offset in s[start:] {
if i == pos {
return offset+start;
}