Doing some cleanup on the outliner in preparation for some functional changes. This patch moves findCandidates out of the suffix tree. (No test attached since it's just some tidying that doesn't impact the behaviour of the outliner.) Also adds a couple FIXMEs for future cleanup/improvements.
It's much easier to see what's going on when benefit calculations and queries are in the same place. Because the suffix tree ought not to know target-specific details, it makes sense to yank this out of the tree.
can't you just make this "OUTLINE_FUNCTION_"?