Merge pull request #5049 from Pamplemousse/less_globals

libexpr: Remove unused code
This commit is contained in:
Eelco Dolstra 2021-07-27 09:53:12 +02:00 committed by GitHub
commit da9b2cd74e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}