Skip to content

Commit cd308e5

Browse files
hjothamendixclaude
andcommitted
chore: remove dead collectReachableNodes helper
The describer no longer references collectReachableNodes; selectNearestCommonMerge uses collectReachableDistances exclusively. Drop the unused helper to keep the file focused. Addresses ako's cleanup note on PR mendixlabs#327. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 9fb080b commit cd308e5

1 file changed

Lines changed: 0 additions & 27 deletions

File tree

mdl/executor/cmd_microflows_show.go

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -796,33 +796,6 @@ func findMergeForSplit(
796796
return selectNearestCommonJoin(activityMap, branchDistances)
797797
}
798798

799-
// collectReachableNodes collects all nodes reachable from a starting node.
800-
func collectReachableNodes(
801-
ctx *ExecContext,
802-
startID model.ID,
803-
flowsByOrigin map[model.ID][]*microflows.SequenceFlow,
804-
activityMap map[model.ID]microflows.MicroflowObject,
805-
visited map[model.ID]bool,
806-
) map[model.ID]bool {
807-
result := make(map[model.ID]bool)
808-
809-
var traverse func(id model.ID)
810-
traverse = func(id model.ID) {
811-
if visited[id] {
812-
return
813-
}
814-
visited[id] = true
815-
result[id] = true
816-
817-
for _, flow := range flowsByOrigin[id] {
818-
traverse(flow.DestinationID)
819-
}
820-
}
821-
822-
traverse(startID)
823-
return result
824-
}
825-
826799
// collectReachableDistances collects the shortest normal-flow distance from a
827800
// branch start to every reachable node. Error handler flows are excluded because
828801
// they do not participate in split/merge structural pairing.

0 commit comments

Comments
 (0)