From bc70af3582b3e9fea540e68be61078603d1db6b1 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Tue, 22 Jun 2010 15:45:51 +0300 Subject: Lualibs already defines a table.contains() function --- otfl-font-nms.lua | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/otfl-font-nms.lua b/otfl-font-nms.lua index 9ba4f52..7abc62b 100644 --- a/otfl-font-nms.lua +++ b/otfl-font-nms.lua @@ -46,18 +46,6 @@ local trace_progress = true --trackers.register("names.progress", function(v) t local trace_search = false --trackers.register("names.search", function(v) trace_search = v end) local trace_loading = false --trackers.register("names.loading", function(v) trace_loading = v end) - --- Basic function from -function table.contains(table, element) - for _, value in pairs(table) do - if value == element then - return true - end - end - return false -end - - local function sanitize(str) if str then return utfgsub(lower(str), "[^%a%d]", "") -- cgit v1.2.3