diff options
author | Marius <mariausol@gmail.com> | 2013-10-20 01:20:14 +0300 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2013-10-20 01:20:14 +0300 |
commit | 965214d981e6129b782c67adcaf3a81aedcb0bac (patch) | |
tree | 84f5945aae8efc9b6eb1898b873be5453cafe43d /tex/context/base/data-tmp.lua | |
parent | e7d0d90a434e5452ff9e86c8abab5a4cac35e2f1 (diff) | |
download | context-965214d981e6129b782c67adcaf3a81aedcb0bac.tar.gz |
stable 2013.05.28 00:36
Diffstat (limited to 'tex/context/base/data-tmp.lua')
-rw-r--r-- | tex/context/base/data-tmp.lua | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/tex/context/base/data-tmp.lua b/tex/context/base/data-tmp.lua index 3e109dcfe..5025a8a0a 100644 --- a/tex/context/base/data-tmp.lua +++ b/tex/context/base/data-tmp.lua @@ -250,10 +250,6 @@ end caches.getreadablepaths = getreadablepaths caches.getwritablepath = getwritablepath --- this can be tricky as we can have a pre-generated format while at the same time --- use e.g. a home path where we have updated file databases and so maybe we need --- to check first if we do have a writable one - function caches.getfirstreadablefile(filename,...) local rd = getreadablepaths(...) for i=1,#rd do @@ -267,28 +263,6 @@ function caches.getfirstreadablefile(filename,...) return caches.setfirstwritablefile(filename,...) end --- next time we have an issue, we can test this instead: - -function caches.getfirstreadablefile_TEST_ME_FIRST(filename,...) - -- check if we have already written once - local fullname, path = caches.setfirstwritablefile(filename,...) - if is_readable(fullname) then - return fullname, path -- , true - end - -- otherwise search for pregenerated - local rd = getreadablepaths(...) - for i=1,#rd do - local path = rd[i] - local fullname = file.join(path,filename) - if is_readable(fullname) then - usedreadables[i] = true - return fullname, path -- , false - end - end - -- else assume new written - return fullname, path -- , true -end - function caches.setfirstwritablefile(filename,...) local wr = getwritablepath(...) local fullname = file.join(wr,filename) |