From a3361557e3f4a53b90ca5067e68ba9788df20928 Mon Sep 17 00:00:00 2001 From: Qyriad Date: Mon, 15 Jul 2024 16:18:36 -0600 Subject: libexpr: refactor gc-agnostic helpers into one place Change-Id: Icc4b367e4f670d47256f62a3a002cd248a5c2d3b --- src/libexpr/eval.hh | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'src/libexpr/eval.hh') diff --git a/src/libexpr/eval.hh b/src/libexpr/eval.hh index ed51f8d1d..e54eede40 100644 --- a/src/libexpr/eval.hh +++ b/src/libexpr/eval.hh @@ -3,6 +3,7 @@ #include "attr-set.hh" #include "eval-error.hh" +#include "gc-alloc.hh" #include "types.hh" #include "value.hh" #include "nixexpr.hh" @@ -37,22 +38,6 @@ namespace eval_cache { class EvalCache; } -/** Alias for std::map which uses boehmgc's allocator conditional on us actually - * using boehmgc in this build. - */ -#if HAVE_BOEHMGC - template - using GcMap = std::map< - KeyT, - ValueT, - std::less, - traceable_allocator> - >; -#else - using GcMap = std::map -#endif - - /** * Function that implements a primop. */ -- cgit v1.2.3