Remove dead code

This commit is contained in:
gingerBill
2019-01-24 15:52:51 +00:00
parent db2eff6847
commit 345e790f52
5 changed files with 6 additions and 41 deletions
+5
View File
@@ -26,6 +26,10 @@ string_from_ptr :: proc(ptr: ^byte, len: int) -> string {
return transmute(string)mem.Raw_String{ptr, len};
}
compare :: proc(lhs, rhs: string) -> int {
return mem.compare(cast([]byte)lhs, cast([]byte)rhs);
}
contains_rune :: proc(s: string, r: rune) -> int {
for c, offset in s {
if c == r do return offset;
@@ -42,6 +46,7 @@ contains_any :: proc(s, chars: string) -> bool {
}
equal_fold :: proc(s, t: string) -> bool {
loop: for s != "" && t != "" {
sr, tr: rune;