aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/util.hh
diff options
context:
space:
mode:
authorDaniel Asaturov <122093031+salpelter@users.noreply.github.com>2023-06-14 22:09:11 +0400
committerGitHub <noreply@github.com>2023-06-14 14:09:11 -0400
commit468add5aa0b5b0a686cd07aa5417817bb8799602 (patch)
tree0a05986df377db49b753575ea9137f697e46c42d /src/libutil/util.hh
parent63dc8fbbd6e8ce8140c016a06785e766ab0981cc (diff)
Remove dead code (#8504)
`filesystem.cc` is the only place where `createSymlink()` is used with three arguments: in the definition of `replaceSymlink()` with three parameters that _is not used at all_. Closes #8495
Diffstat (limited to 'src/libutil/util.hh')
-rw-r--r--src/libutil/util.hh6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libutil/util.hh b/src/libutil/util.hh
index 00fcb9b79..b302d6f45 100644
--- a/src/libutil/util.hh
+++ b/src/libutil/util.hh
@@ -256,14 +256,12 @@ inline Paths createDirs(PathView path)
/**
* Create a symlink.
*/
-void createSymlink(const Path & target, const Path & link,
- std::optional<time_t> mtime = {});
+void createSymlink(const Path & target, const Path & link);
/**
* Atomically create or replace a symlink.
*/
-void replaceSymlink(const Path & target, const Path & link,
- std::optional<time_t> mtime = {});
+void replaceSymlink(const Path & target, const Path & link);
void renameFile(const Path & src, const Path & dst);