As far as I can tell these methods have only ever been used in the test suite. Since Formula includes FileUtils, it is generally simpler (and in the case of cp, more readable) to use the FileUtils methods directly. Closes Homebrew/homebrew#30081.
Closes Homebrew/homebrew#27672.
Return value was used only by one test, rewrote test to know expected value.