diff --git a/src/corelib/kernel/qtmochelpers.h b/src/corelib/kernel/qtmochelpers.h index fda7d2415a9..75aa553b39f 100644 --- a/src/corelib/kernel/qtmochelpers.h +++ b/src/corelib/kernel/qtmochelpers.h @@ -164,7 +164,6 @@ template struct UintDataEntry { T entry; constexpr UintDataEntry(T &&entry_) : entry(std::move(entry_)) {} - static constexpr int metaTypeCount() { return decltype(T::metaTypes())::Count; } }; // This storage type is designed similar to libc++'s std::tuple, in that it @@ -191,19 +190,6 @@ template struct UintDataStorage::metaTypeCount()); - // but not using the fold expression to avoid exceeding compiler limits - // (calculation done using int to get compile-time overflow checking) - int total = 0; - int counts[] = { 0, UintDataEntry::metaTypeCount()... }; - for (int n : counts) - total += n; - return total; - } }; } // namespace detail