1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 21:01:16 +02:00

Remove the drain argument from readFile

Now it is always `drain` (see previous commit).
This commit is contained in:
Guillaume Bouchard 2020-04-29 18:42:19 +02:00
parent 5a34a473dd
commit 7afcb5af98
5 changed files with 9 additions and 6 deletions

View file

@ -103,7 +103,7 @@ unsigned char getFileType(const Path & path);
/* Read the contents of a file into a string. */
string readFile(int fd);
string readFile(const Path & path, bool drain = false);
string readFile(const Path & path);
void readFile(const Path & path, Sink & sink);
/* Write a string to a file. */