From b3054b334d8cf84dcae12df7e1a4f1f5c0997445 Mon Sep 17 00:00:00 2001 From: Andy Heninger Date: Fri, 23 Mar 2018 22:14:04 +0000 Subject: [PATCH] ICU-13640 Merging the removal of Unified Cache Asserts (r41145) to maint-61 X-SVN-Rev: 41146 --- icu4c/source/common/unifiedcache.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/icu4c/source/common/unifiedcache.cpp b/icu4c/source/common/unifiedcache.cpp index 7ed6bbb819bd..f0f660ed06bb 100644 --- a/icu4c/source/common/unifiedcache.cpp +++ b/icu4c/source/common/unifiedcache.cpp @@ -263,13 +263,10 @@ UBool UnifiedCache::_flush(UBool all) const { int32_t UnifiedCache::_computeCountOfItemsToEvict() const { int32_t totalItems = uhash_count(fHashtable); int32_t evictableItems = totalItems - fNumValuesInUse; - U_ASSERT(totalItems >= fNumValuesInUse); - U_ASSERT(totalItems >= evictableItems); int32_t unusedLimitByPercentage = fNumValuesInUse * fMaxPercentageOfInUse / 100; int32_t unusedLimit = std::max(unusedLimitByPercentage, fMaxUnused); int32_t countOfItemsToEvict = std::max(0, evictableItems - unusedLimit); - U_ASSERT(countOfItemsToEvict >= 0 && countOfItemsToEvict <= evictableItems); return countOfItemsToEvict; }