summaryrefslogtreecommitdiffstats
path: root/src/corelib/global/qglobal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/global/qglobal.cpp')
-rw-r--r--src/corelib/global/qglobal.cpp63
1 files changed, 0 insertions, 63 deletions
diff --git a/src/corelib/global/qglobal.cpp b/src/corelib/global/qglobal.cpp
index 075a9b6926..c8c55c1a38 100644
--- a/src/corelib/global/qglobal.cpp
+++ b/src/corelib/global/qglobal.cpp
@@ -2961,52 +2961,6 @@ QByteArray QSysInfo::bootUniqueId()
};
/*!
- \macro void Q_ASSERT(bool test)
- \relates <QtGlobal>
-
- Prints a warning message containing the source code file name and
- line number if \a test is \c false.
-
- Q_ASSERT() is useful for testing pre- and post-conditions
- during development. It does nothing if \c QT_NO_DEBUG was defined
- during compilation.
-
- Example:
-
- \snippet code/src_corelib_global_qglobal.cpp 17
-
- If \c b is zero, the Q_ASSERT statement will output the following
- message using the qFatal() function:
-
- \snippet code/src_corelib_global_qglobal.cpp 18
-
- \sa Q_ASSERT_X(), qFatal(), {Debugging Techniques}
-*/
-
-/*!
- \macro void Q_ASSERT_X(bool test, const char *where, const char *what)
- \relates <QtGlobal>
-
- Prints the message \a what together with the location \a where,
- the source file name and line number if \a test is \c false.
-
- Q_ASSERT_X is useful for testing pre- and post-conditions during
- development. It does nothing if \c QT_NO_DEBUG was defined during
- compilation.
-
- Example:
-
- \snippet code/src_corelib_global_qglobal.cpp 19
-
- If \c b is zero, the Q_ASSERT_X statement will output the following
- message using the qFatal() function:
-
- \snippet code/src_corelib_global_qglobal.cpp 20
-
- \sa Q_ASSERT(), qFatal(), {Debugging Techniques}
-*/
-
-/*!
\macro void Q_ASSUME(bool expr)
\relates <QtGlobal>
\since 5.0
@@ -3171,23 +3125,6 @@ Q_NORETURN void qTerminate() noexcept
}
/*
- The Q_ASSERT macro calls this function when the test fails.
-*/
-void qt_assert(const char *assertion, const char *file, int line) noexcept
-{
- QMessageLogger(file, line, nullptr).fatal("ASSERT: \"%s\" in file %s, line %d", assertion, file, line);
-}
-
-/*
- The Q_ASSERT_X macro calls this function when the test fails.
-*/
-void qt_assert_x(const char *where, const char *what, const char *file, int line) noexcept
-{
- QMessageLogger(file, line, nullptr).fatal("ASSERT failure in %s: \"%s\", file %s, line %d", where, what, file, line);
-}
-
-
-/*
Dijkstra's bisection algorithm to find the square root of an integer.
Deliberately not exported as part of the Qt API, but used in both
qsimplerichtext.cpp and qgfxraster_qws.cpp