From c2d7c0cdb92ea723789c61e33ff505c0000ed4d1 Mon Sep 17 00:00:00 2001 From: Pamplemousse Date: Mon, 26 Jul 2021 09:14:34 -0700 Subject: [PATCH] libexpr: Remove unused code Signed-off-by: Pamplemousse --- src/libexpr/eval.cc | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc index 419b377ba..b2706aea0 100644 --- a/src/libexpr/eval.cc +++ b/src/libexpr/eval.cc @@ -776,18 +776,10 @@ inline Value * EvalState::lookupVar(Env * env, const ExprVar & var, bool noEval) } -std::atomic nrValuesFreed{0}; - -void finalizeValue(void * obj, void * data) -{ - nrValuesFreed++; -} - Value * EvalState::allocValue() { nrValues++; auto v = (Value *) allocBytes(sizeof(Value)); - //GC_register_finalizer_no_order(v, finalizeValue, nullptr, nullptr, nullptr); return v; }