aboutsummaryrefslogtreecommitdiff
path: root/src/nix/shell.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix/shell.cc')
-rw-r--r--src/nix/shell.cc10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/nix/shell.cc b/src/nix/shell.cc
index d3ecf8de4..95028f10e 100644
--- a/src/nix/shell.cc
+++ b/src/nix/shell.cc
@@ -166,16 +166,6 @@ struct Common : InstallableCommand
}
};
-std::pair<AutoCloseFD, Path> createTempFile(const Path & prefix = "nix")
-{
- Path tmpl(getEnv("TMPDIR", "/tmp") + "/" + prefix + ".XXXXXX");
- // Strictly speaking, this is UB, but who cares...
- AutoCloseFD fd(mkstemp((char *) tmpl.c_str()));
- if (!fd)
- throw SysError("creating temporary file '%s'", tmpl);
- return {std::move(fd), tmpl};
-}
-
struct CmdDevShell : Common
{