Prune function nodes that are no longer referenced due to inlining