From 13d6d25c1a835cc606fdbd6aacc1c5fd3332e774 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Mon, 11 Mar 2024 23:55:43 -0700 Subject: [PATCH] QLibrary/Unix: remove two unused, exported private functions Commit 87362f3f58056e29563936102b29070f3e7e945a added qt_linux_find_symbol_sys(). Given the authors and reviewers, I'm guessing that was used somewhere in qtdeclarative. Indeed, its use was removed in qtdeclarative/67191c2b3213259c6eaf045154e9370faa085868 ("Remove qqmlmemoryprofiler*"). qt_mac_resolve_sys() was never used in the public repository, as far as I can tell. Change-Id: I6818d78a57394e37857bfffd17bbf1fae8688b1a Reviewed-by: Ahmad Samir --- src/corelib/plugin/qlibrary_unix.cpp | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/corelib/plugin/qlibrary_unix.cpp b/src/corelib/plugin/qlibrary_unix.cpp index 1376462ff33..f4eee7fb942 100644 --- a/src/corelib/plugin/qlibrary_unix.cpp +++ b/src/corelib/plugin/qlibrary_unix.cpp @@ -275,20 +275,6 @@ bool QLibraryPrivate::unload_sys() return true; } -#if defined(Q_OS_LINUX) -Q_CORE_EXPORT QFunctionPointer qt_linux_find_symbol_sys(const char *symbol) -{ - return QFunctionPointer(dlsym(RTLD_DEFAULT, symbol)); -} -#endif - -#ifdef Q_OS_DARWIN -Q_CORE_EXPORT QFunctionPointer qt_mac_resolve_sys(void *handle, const char *symbol) -{ - return QFunctionPointer(dlsym(handle, symbol)); -} -#endif - QFunctionPointer QLibraryPrivate::resolve_sys(const char *symbol) { QFunctionPointer address = QFunctionPointer(dlsym(pHnd.loadAcquire(), symbol));