From d26766c4c4015990703e84e8136f96d222edbc97 Mon Sep 17 00:00:00 2001 From: bptato Date: Thu, 14 Mar 2024 20:57:45 +0100 Subject: Move around some modules * extern -> gone, runproc absorbed by pager, others moved into io/ * display -> local/ (where else would we display?) * xhr -> html/ * move out WindowAttributes from term, so we don't depend on local from server --- src/extern/tempfile.nim | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 src/extern/tempfile.nim (limited to 'src/extern/tempfile.nim') diff --git a/src/extern/tempfile.nim b/src/extern/tempfile.nim deleted file mode 100644 index 5968270b..00000000 --- a/src/extern/tempfile.nim +++ /dev/null @@ -1,18 +0,0 @@ -import std/os - -var tmpf_seq: int -proc getTempFile*(tmpdir: string, ext = ""): string = - if not dirExists(tmpdir): - createDir(tmpdir) - var tmpf = tmpdir / "chatmp" & $getCurrentProcessId() & "-" & $tmpf_seq - if ext != "": - tmpf &= "." - tmpf &= ext - while fileExists(tmpf): - inc tmpf_seq - tmpf = tmpdir / "chatmp" & $tmpf_seq - if ext != "": - tmpf &= "." - tmpf &= ext - inc tmpf_seq - return tmpf -- cgit 1.4.1-2-gfad0