- return clean(onlyOld, dir);
- }
-
- /**
- * Clean the cache (delete the cached items) in the given cache directory.
- *
- * @param onlyOld
- * only clean the files that are considered too old for stable
- * resources
- * @param cacheDir
- * the cache directory to clean
- *
- * @return the number of cleaned items
- */
- private int clean(boolean onlyOld, File cacheDir) {