Drop the comments restating readsOnEdge and walksInto

This commit is contained in:
2026-09-25 09:04:36 +02:00
committed by Lillem4n
parent ab0a10115d
commit 29f1908e5a
-4
View File
@@ -131,15 +131,11 @@ func (c *drawCheck) reads(n node, stopAtGroup bool) bool {
return r
}
// readsOnEdge reports whether an edge of n is itself a reference path: a reference with a tail, or
// one naming a table.
func readsOnEdge(n node, label string) bool {
a, isRef := refRead(n, label)
return isRef && (len(a.tail) > 0 || readsTable(n, a))
}
// walksInto reports whether reads walks on into to, which it does short of a repeat, and of a draw
// group when stopAtGroup.
func walksInto(to node, stopAtGroup bool) bool {
return !repeats(to) && !(stopAtGroup && grouped(to))
}