[REFACTOR] inlined static utility method

Also removed the progress monitor usage as file
sending is performed async. and the average file size
of an editable file is not greater than a bunch of several
kilobytes and will therefore not take more than a second to read
such a file into memory.

Change-Id: I485bc1cfdf0ce95e5d87b0e118c775452b9aab64
Reviewed-on: http://saros-build.imp.fu-berlin.de/gerrit/872
Tested-by: Jenkins CI
Reviewed-by: Stefan Rossbach <srossbach@arcor.de>