From 13b3a5acabebf5147b34f07510d1ef96a07794cd Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Sun, 16 Oct 2011 19:52:32 +0200 Subject: Remove remenants of long gone feature --- otfl-font-nms.lua | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/otfl-font-nms.lua b/otfl-font-nms.lua index 889c5aa..34cef92 100644 --- a/otfl-font-nms.lua +++ b/otfl-font-nms.lua @@ -16,7 +16,6 @@ names.data = nil names.path = { basename = "otfl-names.lua", localdir = file.join(kpse.expand_var("$TEXMFVAR"), names_dir), - systemdir = file.join(kpse.expand_var("$TEXMFSYSVAR"), names_dir), } local success = pcall(require, "luatexbase.modutils") @@ -61,19 +60,11 @@ end local function load_names() local localpath = file.join(names.path.localdir, names.path.basename) - local systempath = file.join(names.path.systemdir, names.path.basename) - local kpsefound = kpse.find_file(names.path.basename) local foundname local data - if kpsefound and file.isreadable(kpsefound) then - data = dofile(kpsefound) - foundname = kpsefound - elseif file.isreadable(localpath) then + if file.isreadable(localpath) then data = dofile(localpath) foundname = localpath - elseif file.isreadable(systempath) then - data = dofile(systempath) - foundname = systempath end if data then logs.info("Font names database loaded", "%s", foundname) -- cgit v1.2.3