[InputGraph] remove unused functions.
[cleanup] remove readFile and replace with getBuffer.

no functionality change.