aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-07-27 09:53:12 +0200
committerGitHub <noreply@github.com>2021-07-27 09:53:12 +0200
commitda9b2cd74e484d2d642cd344016a7b97c7536cda (patch)
treee20ef02077ed6bac466c63d286ad235962d7f93e
parentda552104030fb294ca547f26113e3fb7f796877b (diff)
parentc2d7c0cdb92ea723789c61e33ff505c0000ed4d1 (diff)
Merge pull request #5049 from Pamplemousse/less_globals
libexpr: Remove unused code
-rw-r--r--src/libexpr/eval.cc8
1 files changed, 0 insertions, 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<uint64_t> 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;
}