Remove debug code.

This commit is contained in:
Dominik Picheta 2014-10-17 18:39:09 +01:00
commit e520df80da

View file

@ -25,10 +25,8 @@ proc invalidateAll*(cache: CacheHolder) =
template get*(cache: CacheHolder, name: string, grabValue: expr): expr =
## Check to see if the cache contains value for ``name``. If it does and the
## cache is valid then doesn't recalculate it but returns the cached version.
echo(cache.caches)
mixin normalizePath
let nName = name.normalizePath()
if not (cache.caches.hasKey(nName) and cache.caches[nName].valid):
echo "Resetting cache."
cache.caches[nName] = CacheInfo(valid: true, value: grabValue)
cache.caches[nName].value