mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 08:55:11 +01:00
Remove short_read_src cgen code path
This commit is contained in:
1 parent
eca5565821
commit
f2ee78aa2a
4 files changed
+124
-148
No files matched your search
@@ -41,7 +41,6 @@ type funk struct {
|
||||
suspendible bool // TODO: rename to coroutine.
|
||||
usesScratch bool
|
||||
hasGotoOK bool
|
||||
shortReads []string
|
||||
}
|
||||
|
||||
func (k *funk) jumpTarget(n a.Loop) (uint32, error) {
|
||||
@@ -344,19 +343,6 @@ func (g *gen) writeFuncImplFooter(b *buffer) error {
|
||||
b.writes("self->private_impl.status = status;\n")
|
||||
}
|
||||
b.writes("return status;\n\n")
|
||||
|
||||
shortReadsSeen := map[string]struct{}{}
|
||||
for _, sr := range g.currFunk.shortReads {
|
||||
if _, ok := shortReadsSeen[sr]; ok {
|
||||
continue
|
||||
}
|
||||
shortReadsSeen[sr] = struct{}{}
|
||||
if err := template_short_read(b, template_args_short_read{
|
||||
name: sr,
|
||||
}); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user