shithub: orca

Download patch

ref: bb7549673d8bec8a4d8acb37d38701f8f3b53072
parent: 050ed2912677b95f4648e13866612fdd8228240e
author: cancel <cancel@cancel.fm>
date: Mon Nov 26 07:52:36 EST 2018

Cleanup

--- a/sim.c
+++ b/sim.c
@@ -12,14 +12,6 @@
 
 enum { Glyphs_array_num = sizeof indexed_glyphs };
 
-static inline Usz index_of_glyph(Glyph c) {
-  for (Usz i = 0; i < Glyphs_array_num; ++i) {
-    if (indexed_glyphs[i] == c)
-      return i;
-  }
-  return SIZE_MAX;
-}
-
 static inline Glyph glyph_lowered(Glyph c) {
   return (c >= 'A' && c <= 'Z') ? (char)(c - ('a' - 'A')) : c;
 }