diff options
author | regnat <rg@regnat.ovh> | 2021-02-04 15:15:22 +0100 |
---|---|---|
committer | regnat <rg@regnat.ovh> | 2021-02-05 11:42:33 +0100 |
commit | e69cfdebb090b3aabbff69a44504883d5b6fb866 (patch) | |
tree | 05a7b8af1ff07a32b008276d456abc72260f8ec9 /src/libstore/realisation.hh | |
parent | d2091af231ab97b729c2486b55e520c565e59dd3 (diff) |
Remove the `visit` machinery in `RealisedPath`
In addition to being some ugly template trickery, it was also totally
useless as it was used in only one place where I could replace it by
just a few extra characters
Diffstat (limited to 'src/libstore/realisation.hh')
-rw-r--r-- | src/libstore/realisation.hh | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/libstore/realisation.hh b/src/libstore/realisation.hh index 557f54362..7c91d802a 100644 --- a/src/libstore/realisation.hh +++ b/src/libstore/realisation.hh @@ -59,19 +59,6 @@ struct RealisedPath { RealisedPath(Realisation r) : raw(r) {} /** - * Syntactic sugar to run `std::visit` on the raw value: - * path.visit(blah) == std::visit(blah, path.raw) - */ - template <class Visitor> - constexpr decltype(auto) visit(Visitor && vis) { - return std::visit(vis, raw); - } - template <class Visitor> - constexpr decltype(auto) visit(Visitor && vis) const { - return std::visit(vis, raw); - } - - /** * Get the raw store path associated to this */ StorePath path() const; |