mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[apps/continuous_function] Cut clearCache method
Inlined call to ContinuousFunction::clearCache and removed the method, as its name was confusing. Change-Id: I54454fb0b06167e01249afaa5b23932451125f2e
This commit is contained in:
committed by
Émilie Feral
parent
1de6ac702d
commit
2bfdc482a6
@@ -24,7 +24,7 @@ void ContinuousFunctionCache::PrepareForCaching(void * fun, ContinuousFunctionCa
|
||||
* by 1 for cache hits. As an added safety, we add another buffer of
|
||||
* k_cacheHitTolerance, raising the threshold for caching to three times
|
||||
* the tolerance. */
|
||||
function->clearCache();
|
||||
function->setCache(nullptr);
|
||||
return;
|
||||
}
|
||||
if (function->cache() != cache) {
|
||||
|
||||
Reference in New Issue
Block a user