Remove "optimization" re Extension lookups
Historically, Extension lookups were only decompiled upon access,
and decompiled Extension lookups were possibly copied verbatim to
output when compiling. This discrepancy with all other table types
is confusing and undeed. The possible time saving is not worth the
loss in possible optimization of table data. Remove.
diff --git a/Lib/fontTools/ttLib/tables/otBase.py b/Lib/fontTools/ttLib/tables/otBase.py
index 7eadebe..51f7199 100644
--- a/Lib/fontTools/ttLib/tables/otBase.py
+++ b/Lib/fontTools/ttLib/tables/otBase.py
@@ -251,7 +251,7 @@
items[i] = packUShort(item.pos - pos)
except AssertionError:
# provide data to fix overflow problem.
- # If the overflow is to a lookup, or from a lookup to a subtable,
+ # If the overflow is to a lookup, or from a lookup to a subtable,
# just report the current item.
if self.name in [ 'LookupList', 'Lookup']:
overflowErrorRecord = self.getOverflowErrorRecord(item)
@@ -578,9 +578,6 @@
self.decompile(subReader, self.font)
del self.reader, self.font, self.offset
- def preCompile(self):
- pass # used only by the LookupList class
-
def compile(self, writer, font):
table = self.preWrite(font)