diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2020-07-20 13:37:58 +0200 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2020-08-14 09:59:36 +0200 |
commit | 9ee554ac1d1af97e7ad5b4bf78e2779f7d1c405f (patch) | |
tree | c40e65aa3b2f7d02c32b592855c8c03252909c2b /src/corelib/global/qglobal.cpp | |
parent | ff555d89650f5cea72365e12fb2b71be9e25b89d (diff) |
qglobal.h: remove deprecated global functions
Since 5.0 - qMalloc(), qFree(), qRealloc(), qMemCopy(), qMemSet()
Since 5.15 - qsrand(), qrand()
Change-Id: I74fa3d17b05521271c3dc563fc85a5b133289ce3
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/corelib/global/qglobal.cpp')
-rw-r--r-- | src/corelib/global/qglobal.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/corelib/global/qglobal.cpp b/src/corelib/global/qglobal.cpp index 5655f77d3c..4f51a0e259 100644 --- a/src/corelib/global/qglobal.cpp +++ b/src/corelib/global/qglobal.cpp @@ -122,12 +122,6 @@ extern "C" { QT_BEGIN_NAMESPACE -#if !QT_DEPRECATED_SINCE(5, 0) -// Make sure they're defined to be exported -Q_CORE_EXPORT void *qMemCopy(void *dest, const void *src, size_t n); -Q_CORE_EXPORT void *qMemSet(void *dest, int c, size_t n); -#endif - // Statically check assumptions about the environment we're running // in. The idea here is to error or warn if otherwise implicit Qt // assumptions are not fulfilled on new hardware or compilers @@ -3165,9 +3159,6 @@ Q_CORE_EXPORT Q_DECL_CONST_FUNCTION unsigned int qt_int_sqrt(unsigned int n) return p; } -void *qMemCopy(void *dest, const void *src, size_t n) { return memcpy(dest, src, n); } -void *qMemSet(void *dest, int c, size_t n) { return memset(dest, c, n); } - // In the C runtime on all platforms access to the environment is not thread-safe. We // add thread-safety for the Qt wrappers. static QBasicMutex environmentMutex; |