summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/corelib/global/qglobal.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h
index 5856ddfb01..ae20e3da75 100644
--- a/src/corelib/global/qglobal.h
+++ b/src/corelib/global/qglobal.h
@@ -1175,19 +1175,6 @@ Q_CORE_EXPORT QString qtTrId(const char *id, int n = -1);
#endif // QT_NO_TRANSLATION
-/*
- When RTTI is not available, define this macro to force any uses of
- dynamic_cast to cause a compile failure.
-*/
-
-#if defined(QT_NO_DYNAMIC_CAST) && !defined(dynamic_cast)
-# define dynamic_cast QT_PREPEND_NAMESPACE(qt_dynamic_cast_check)
-
- template<typename T, typename X>
- T qt_dynamic_cast_check(X, T* = nullptr)
- { return T::dynamic_cast_will_always_fail_because_rtti_is_disabled; }
-#endif
-
#ifdef Q_QDOC
// Just for documentation generation