Remove deprecated no-op function (1/2)

Glib::thread_init has been deprecated since 2.32,ib
is no longer necessary and no longer has any effect.

This fixes builds with modern glib[mm] versions, notably
with msys2 in Windows.
This commit is contained in:
Robin Gareus 2025-11-20 23:10:52 +01:00
parent fc3b79dd58
commit 34609232f0
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
6 changed files with 0 additions and 19 deletions

View file

@ -19,10 +19,6 @@ static const char* localedir = LOCALEDIR;
int int
main(int argc, char* argv[]) main(int argc, char* argv[])
{ {
if (!Glib::thread_supported()) {
Glib::thread_init();
}
const struct option longopts[] = { const struct option longopts[] = {
{ "debug", 1, 0, 'D' }, { "debug", 1, 0, 'D' },
{ 0, 0, 0, 0 } { 0, 0, 0, 0 }

View file

@ -4,7 +4,6 @@
int main() int main()
{ {
Glib::thread_init();
CppUnit::TextUi::TestRunner runner; CppUnit::TextUi::TestRunner runner;
CppUnit::TestFactoryRegistry &registry = CppUnit::TestFactoryRegistry::getRegistry(); CppUnit::TestFactoryRegistry &registry = CppUnit::TestFactoryRegistry::getRegistry();
runner.addTest (registry.makeTest()); runner.addTest (registry.makeTest());

View file

@ -87,10 +87,6 @@ PBD::init ()
} }
#endif #endif
if (!Glib::thread_supported()) {
Glib::thread_init();
}
Gio::init (); Gio::init ();
PBD::ID::init (); PBD::ID::init ();

View file

@ -15,9 +15,6 @@ CPPUNIT_TEST_SUITE_REGISTRATION (RCUTest);
void void
RCUTest::setUp () RCUTest::setUp ()
{ {
if (!Glib::thread_supported ()) {
Glib::thread_init ();
}
} }
static void* static void*

View file

@ -10,9 +10,6 @@ CPPUNIT_TEST_SUITE_REGISTRATION (SignalsTest);
void void
SignalsTest::setUp () SignalsTest::setUp ()
{ {
if (!Glib::thread_supported ()) {
Glib::thread_init ();
}
} }
class Emitter { class Emitter {

View file

@ -17,10 +17,6 @@
int int
main(int argc, char* argv[]) main(int argc, char* argv[])
{ {
if (!Glib::thread_supported()) {
Glib::thread_init();
}
const struct option longopts[] = { const struct option longopts[] = {
{ "debug", 1, 0, 'D' }, { "debug", 1, 0, 'D' },
{ 0, 0, 0, 0 } { 0, 0, 0, 0 }