diff options
author | Pamplemousse <xav.maso@gmail.com> | 2021-07-26 09:14:34 -0700 |
---|---|---|
committer | Pamplemousse <xav.maso@gmail.com> | 2021-07-26 09:14:34 -0700 |
commit | c2d7c0cdb92ea723789c61e33ff505c0000ed4d1 (patch) | |
tree | e20ef02077ed6bac466c63d286ad235962d7f93e /src/libexpr/eval.cc | |
parent | da552104030fb294ca547f26113e3fb7f796877b (diff) |
libexpr: Remove unused code
Signed-off-by: Pamplemousse <xav.maso@gmail.com>
Diffstat (limited to 'src/libexpr/eval.cc')
-rw-r--r-- | src/libexpr/eval.cc | 8 |
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; } |