diff options
author | Elie Roux <elie.roux@telecom-bretagne.eu> | 2013-05-11 01:53:12 -0700 |
---|---|---|
committer | Elie Roux <elie.roux@telecom-bretagne.eu> | 2013-05-11 01:53:12 -0700 |
commit | 9d88759309b030a12bdb7850d9d4fb410446c762 (patch) | |
tree | 36eeafa310553a704cf7194df8d32621a23d34c4 | |
parent | fb82dbc637698c1d50bb51a9a241e96a83ef27dc (diff) | |
parent | 8cc3ffd76e9b920f8adb9673fe88196ef7e4f8fb (diff) | |
download | luaotfload-9d88759309b030a12bdb7850d9d4fb410446c762.tar.gz |
Merge pull request #61 from phi-gamma/master
[rfc] remove ``names.scan()``
-rw-r--r-- | luaotfload-database.lua | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/luaotfload-database.lua b/luaotfload-database.lua index 720554b..33b6b29 100644 --- a/luaotfload-database.lua +++ b/luaotfload-database.lua @@ -1510,25 +1510,26 @@ save_names = function (fontnames) return false end -scan_external_dir = function (dir) - local old_names, new_names - if fonts_loaded then - old_names = names.data - else - old_names = load_names() - end - new_names = tablecopy(old_names) - local n_scanned, n_new = scan_dir(dir, old_names, new_names) - names.data = new_names - return n_scanned, n_new -end +--- is this used anywhere? +--scan_external_dir = function (dir) +-- local old_names, new_names +-- if fonts_loaded then +-- old_names = names.data +-- else +-- old_names = load_names() +-- end +-- new_names = tablecopy(old_names) +-- local n_scanned, n_new = scan_dir(dir, old_names, new_names) +-- names.data = new_names +-- return n_scanned, n_new +--end --- export functionality to the namespace “fonts.names” names.flush_cache = flush_cache names.save_lookups = save_lookups names.load = load_names names.save = save_names -names.scan = scan_external_dir +-----.scan = scan_external_dir names.update = update_names names.crude_file_lookup = crude_file_lookup names.crude_file_lookup_verbose = crude_file_lookup_verbose |