aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJade Lovelace <lix@jade.fyi>2024-08-22 20:41:40 -0700
committerJade Lovelace <lix@jade.fyi>2024-08-23 13:23:33 -0700
commit7e677d15a4466d19f9d0c471e218ecb38f4ba56e (patch)
treec6fb14f8642628a50b7e3cf9a8e66b652a5bf10d /src
parentaf546be20560c5e192b8cf8df5d28c94ea7a9832 (diff)
libutil: delete unused boost context cruft
This was from before we got rid of the boost coroutines. Now we don't need any of this code. Change-Id: Ief8e8ebc184f02f48e30cb253a66b540faa56329
Diffstat (limited to 'src')
-rw-r--r--src/libutil/serialise.hh19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/libutil/serialise.hh b/src/libutil/serialise.hh
index 6c637bd35..8218db440 100644
--- a/src/libutil/serialise.hh
+++ b/src/libutil/serialise.hh
@@ -9,8 +9,6 @@
#include "types.hh"
#include "file-descriptor.hh"
-namespace boost::context { struct stack_context; }
-
namespace nix {
@@ -612,23 +610,6 @@ struct FramedSink : nix::BufferedSink
};
};
-/**
- * Stack allocation strategy for sinkToSource.
- * Mutable to avoid a boehm gc dependency in libutil.
- *
- * boost::context doesn't provide a virtual class, so we define our own.
- */
-struct StackAllocator {
- virtual boost::context::stack_context allocate() = 0;
- virtual void deallocate(boost::context::stack_context sctx) = 0;
-
- /**
- * The stack allocator to use in sinkToSource and potentially elsewhere.
- * It is reassigned by the initGC() method in libexpr.
- */
- static StackAllocator *defaultAllocator;
-};
-
/* Disabling GC when entering a coroutine (without the boehm patch).
mutable to avoid boehm gc dependency in libutil.
*/