From bb7549673d8bec8a4d8acb37d38701f8f3b53072 Mon Sep 17 00:00:00 2001 From: cancel Date: Mon, 26 Nov 2018 12:52:36 +0900 Subject: [PATCH] Cleanup --- sim.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/sim.c b/sim.c index 056d147..5f6fb6f 100644 --- a/sim.c +++ b/sim.c @@ -12,14 +12,6 @@ static Glyph const indexed_glyphs[] = { 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; }