Remove unused function.
Change from generator to normal collect and return.

No point anyways as the subprocess output is buffered.