summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2011-10-16 19:52:32 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2011-10-16 19:52:32 +0200
commit13b3a5acabebf5147b34f07510d1ef96a07794cd (patch)
tree4010137e5f2ab8d86279d4e0720059f778554de0
parent75a6298d11009b6e9d1373f6ab7ddfaa4f2a1100 (diff)
downloadluaotfload-13b3a5acabebf5147b34f07510d1ef96a07794cd.tar.gz
Remove remenants of long gone feature
-rw-r--r--otfl-font-nms.lua11
1 files changed, 1 insertions, 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)