summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-04-30 19:45:23 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-04-30 19:45:23 +0200
commit021dadf3ab211cf76a17b6d0e3e169eafe355e1b (patch)
tree97b05afb0c8ddcd4635a7478405984f0fb5d4107
parent2d696088aece49853d17f4b2ab3bab0e242071e8 (diff)
downloadluaotfload-021dadf3ab211cf76a17b6d0e3e169eafe355e1b.tar.gz
remove redundant dead code
-rw-r--r--luaotfload.dtx32
1 files changed, 0 insertions, 32 deletions
diff --git a/luaotfload.dtx b/luaotfload.dtx
index 36c2a68..eb77d46 100644
--- a/luaotfload.dtx
+++ b/luaotfload.dtx
@@ -1733,38 +1733,6 @@ elseif luaotfload.font_definer == "patch" then
1)
end
---[[todo--
---- The manual promises coercion of the file: lookup if
---- the asked name is enclosed in brackets.
---- A couple things make me doubt that this is the case:
----
---- 1) there doesn’t appear to be code for these cases
---- 2) the brackets remain part of the file name
---- 3) we still get calls to names.resolve which
---- ignores the “lookup” field of the spec it gets
----
---- For this reason here is some code that a) coerces
---- file: lookups in these cases and b) strips the brackets
---- from the file name. As we *still* get name: lookups even
---- though this code is active I’ll just leave it here
---- for reference, ineffective as it is.
-do
- local getspecification, makespecification =
- fonts.definers.getspecification, fonts.definers.makespecification
-
- local analyze = function (specification, size)
- local lookup, name, sub, method, detail = getspecification(specification or "")
- local filename = stringmatch(name, "^%[(.*)%]$")
- if filename then
- lookup = "file" --> coerce file:
- name = filename --> remove brackets
- end
- return makespecification(specification, lookup, name, sub, method, detail, size)
- end
- fonts.definers.analyze = analyze
-end
---]]--
-
loadmodule"features.lua" --- contains what was “font-ltx” and “font-otc”
-- vim:tw=71:sw=4:ts=4:expandtab