1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-04 23:51:47 +02:00

Remove warnLargeDump()

This message was unhelpful (#1184) and probably misleading since
memory is O(1) in most cases now.
This commit is contained in:
Eelco Dolstra 2022-08-12 12:28:02 +02:00
parent c3769c6846
commit 53e7b7e8ac
3 changed files with 1 additions and 25 deletions

View file

@ -97,19 +97,17 @@ protected:
struct FdSink : BufferedSink
{
int fd;
bool warn = false;
size_t written = 0;
FdSink() : fd(-1) { }
FdSink(int fd) : fd(fd) { }
FdSink(FdSink&&) = default;
FdSink& operator=(FdSink && s)
FdSink & operator=(FdSink && s)
{
flush();
fd = s.fd;
s.fd = -1;
warn = s.warn;
written = s.written;
return *this;
}