Skip to content

Commit 156c78e

Browse files
Simplify: Y_ASSERT already contains Y_UNUSED for NDEBUG case
commit_hash:b5bb48dba5876cb5fa844ea640062e9ba3d05e60
1 parent c61d222 commit 156c78e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

util/generic/ptr.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -405,13 +405,11 @@ class TRefCounted {
405405
inline void Ref(intptr_t d) noexcept {
406406
auto resultCount = Counter_.Add(d);
407407
Y_ASSERT(resultCount >= d);
408-
(void)resultCount;
409408
}
410409

411410
inline void Ref() noexcept {
412411
auto resultCount = Counter_.Inc();
413412
Y_ASSERT(resultCount != 0);
414-
(void)resultCount;
415413
}
416414

417415
inline void UnRef(intptr_t d) noexcept {
@@ -433,7 +431,6 @@ class TRefCounted {
433431
inline void DecRef() noexcept {
434432
auto resultCount = Counter_.Dec();
435433
Y_ASSERT(resultCount >= 0);
436-
(void)resultCount;
437434
}
438435

439436
TRefCounted(const TRefCounted&)

0 commit comments

Comments
 (0)