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
This commit is contained in:
jade 2024-08-22 20:41:40 -07:00
parent af546be205
commit 7e677d15a4

View file

@ -9,8 +9,6 @@
#include "types.hh" #include "types.hh"
#include "file-descriptor.hh" #include "file-descriptor.hh"
namespace boost::context { struct stack_context; }
namespace nix { 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). /* Disabling GC when entering a coroutine (without the boehm patch).
mutable to avoid boehm gc dependency in libutil. mutable to avoid boehm gc dependency in libutil.
*/ */