Remove obsolete reference to io_reader.set_limit

This commit is contained in:
Nigel Tao committed 2019-07-07 17:21:41 +10:00
1 parent 5653fb0409
commit f0e9a9bc13
1 file changed
+1 -7
+1 -7
View File
@@ -294,13 +294,7 @@ func (g *gen) writeStatementIOBind(b *buffer, n *a.IOBind, depth uint32) error {
b.writes(");\n")
} else {
// TODO: restrict (in the type checker or parser) that e is
// args.foo?
b.printf("wuffs_base__io_%s__set_limit(&%s%s, iop_%s%s,\n", cTyp, prefix, name, prefix, name)
if err := g.writeExpr(b, n.Arg1(), 0); err != nil {
return err
}
b.writes(");\n")
return fmt.Errorf("TODO: implement io_limit (or remove it from the parser)")
}
}