mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 16:55:11 +01:00
Delete old limit- and mark-related code.
This commit is contained in:
1 parent
aa396e7992
commit
cbc8c39375
12 files changed
+10
-167
No files matched your search
@@ -68,15 +68,6 @@ func (g *gen) writeStatement(b *buffer, n *a.Node, depth uint32) error {
|
||||
b.writes(";\n")
|
||||
return nil
|
||||
|
||||
case a.KIO:
|
||||
// TODO: is a private_impl.mark the right representation? What if the
|
||||
// function is passed a (ptr writer1) instead of a (writer1)? Do we
|
||||
// still want to have that mark live outside of the function scope?
|
||||
//
|
||||
// TODO: remove this hard-coded hack for "mark in.dst".
|
||||
b.printf("%sdst.private_impl.mark = %swptr_dst;", aPrefix, bPrefix)
|
||||
return nil
|
||||
|
||||
case a.KIf:
|
||||
// TODO: for writeSuspendibles, make sure that we get order of
|
||||
// sub-expression evaluation correct.
|
||||
@@ -257,15 +248,6 @@ func (g *gen) writeStatement(b *buffer, n *a.Node, depth uint32) error {
|
||||
if err := g.writeSuspendibles(b, v, depth); err != nil {
|
||||
return err
|
||||
}
|
||||
if v.ID0().Key() == t.KeyLimit {
|
||||
g.currFunk.limitVarName = n.Name().String(g.tm)
|
||||
b.printf("%s%s =", lPrefix, g.currFunk.limitVarName)
|
||||
if err := g.writeExpr(
|
||||
b, v.LHS().Expr(), replaceCallSuspendibles, parenthesesMandatory, depth); err != nil {
|
||||
return err
|
||||
}
|
||||
b.writes(";\n")
|
||||
}
|
||||
}
|
||||
switch n.XType().Decorator().Key() {
|
||||
case t.KeyOpenBracket:
|
||||
|
||||
Reference in new issue
Block a user