From 767b9baca73620a0092bda38055e18e3aff21e18 Mon Sep 17 00:00:00 2001 From: AZero13 Date: Thu, 11 Dec 2025 10:52:52 -0500 Subject: [PATCH] Remove dead, useless storage count check Storage count is always equal to or less than the max, so this is useless dead code. --- .../NotificationCenter/NotificationCenter.swift | 2 -- 1 file changed, 2 deletions(-) diff --git a/Sources/FoundationEssentials/NotificationCenter/NotificationCenter.swift b/Sources/FoundationEssentials/NotificationCenter/NotificationCenter.swift index c682dc08d..3ffbcbab0 100644 --- a/Sources/FoundationEssentials/NotificationCenter/NotificationCenter.swift +++ b/Sources/FoundationEssentials/NotificationCenter/NotificationCenter.swift @@ -32,8 +32,6 @@ private struct AutoDictionary { // Effectively O(1), worst case O(n) mutating func insert(_ value: Value) -> UInt64 { - guard storage.count <= UInt64.max else { fatalError("Exceeded maximum storage size") } - var key = salvagedKeys.popLast() while(key != nil) { if let key, storage[key] == nil {