Remove the (table T).linearize method

This commit is contained in:
Nigel Tao committed 2018-05-29 08:23:10 +10:00
1 parent c723329263
commit 47cf248e57
11 files changed
+6 -95

No files matched your search

-9
View File
@@ -324,15 +324,6 @@ func (g *gen) writeBuiltinTable(b *buffer, recv *a.Expr, method t.ID, args []*a.
case t.IDWidth:
field = "width"
case t.IDLinearize:
// TODO: don't assume that the table is a table of base.u8.
b.writes("wuffs_base__table_u8__linearize(")
if err := g.writeExpr(b, recv, rp, depth); err != nil {
return err
}
b.writeb(')')
return nil
case t.IDRow:
// TODO: don't assume that the table is a table of base.u8.
b.writes("wuffs_base__table_u8__row(")