vcl/unx/gtk3/gtkinst.cxx |    6 ------
 1 file changed, 6 deletions(-)

New commits:
commit aa963e6273541e81921dffda85cb1a42ce8e6de4
Author:     Xisco Fauli <[email protected]>
AuthorDate: Mon Oct 21 16:56:51 2024 +0200
Commit:     Caolán McNamara <[email protected]>
CommitDate: Mon Oct 21 20:25:38 2024 +0200

    tdf#163486 PVS: deprecated function
    
    https://stackoverflow.com/questions/20711740/gtk2-g-thread-init-deprecated
    
    V1109   The 'g_thread_init' function is deprecated. Consider switching to 
an equivalent newer function.
    
    Change-Id: Idb3cdf277d9be0bcf73b4329d3504f6355a8001c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175339
    Reviewed-by: Caolán McNamara <[email protected]>
    Tested-by: Jenkins

diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx
index c7a460656f07..5e8b46c7a0af 100644
--- a/vcl/unx/gtk3/gtkinst.cxx
+++ b/vcl/unx/gtk3/gtkinst.cxx
@@ -157,12 +157,6 @@ extern "C"
 #endif
 
 #if !GTK_CHECK_VERSION(4, 0, 0)
-        // init gdk thread protection
-        bool const sup = g_thread_supported();
-            // extracted from the 'if' to avoid Clang -Wunreachable-code
-        if ( !sup )
-            g_thread_init( nullptr );
-
         gdk_threads_set_lock_functions (GdkThreadsEnter, GdkThreadsLeave);
         SAL_INFO("vcl.gtk", "Hooked gdk threads locks");
 #endif

Reply via email to