glib: remove invocations of g_type_init()

g_type_init() has been deprecated (and also marked with the attribute
'deprecated') since glib 2.36 as the type system is automatically
initialized. Since the minimum version of glib required by ModemManager
is 2.36, calling g_type_init() isn't necessarily in the ModemManager
code.
This commit is contained in:
Ben Chan
2017-02-02 16:45:01 -08:00
committed by Aleksander Morgado
parent f20f2d0428
commit 31655bb5a5
24 changed files with 0 additions and 31 deletions

View File

@@ -184,8 +184,6 @@ main (gint argc, gchar **argv)
setlocale (LC_ALL, "");
g_type_init ();
/* Setup option context, process it and destroy it */
context = g_option_context_new ("- Control and monitor the ModemManager");
g_option_context_add_group (context,

View File

@@ -490,7 +490,6 @@ field_parser_double (void)
int main (int argc, char **argv)
{
g_type_init ();
g_test_init (&argc, &argv, NULL);
g_test_add_func ("/MM/Common/KeyValue/standard", key_value_test_standard);

View File

@@ -142,7 +142,6 @@ int main (int argc, char **argv)
{
setlocale (LC_ALL, "");
g_type_init ();
g_test_init (&argc, &argv, NULL);
g_test_add_func ("/MM/altair/parse_bands", test_parse_bands);

View File

@@ -541,7 +541,6 @@ int main (int argc, char **argv)
{
setlocale (LC_ALL, "");
g_type_init ();
g_test_init (&argc, &argv, NULL);
g_test_add_func ("/MM/cinterion/scfg", test_scfg);

View File

@@ -82,7 +82,6 @@ test_enable_disable (TestFixture *fixture)
int main (int argc,
char *argv[])
{
g_type_init ();
g_test_init (&argc, &argv, NULL);
TEST_ADD ("/MM/Service/Generic/enable-disable", test_enable_disable);

View File

@@ -1291,7 +1291,6 @@ int main (int argc, char **argv)
{
setlocale (LC_ALL, "");
g_type_init ();
g_test_init (&argc, &argv, NULL);
g_test_add_func ("/MM/huawei/ndisstatqry", test_ndisstatqry);

View File

@@ -199,7 +199,6 @@ int main (int argc, char **argv)
{
setlocale (LC_ALL, "");
g_type_init ();
g_test_init (&argc, &argv, NULL);
g_test_add_func ("/MM/icera/ipdpaddr", test_ipdpaddr);

View File

@@ -85,7 +85,6 @@ int main (int argc, char **argv)
{
setlocale (LC_ALL, "");
g_type_init ();
g_test_init (&argc, &argv, NULL);
g_test_add_func ("/MM/linktop/cfun/query/current-modes", test_cfun_query_current_modes);

View File

@@ -279,7 +279,6 @@ int main (int argc, char **argv)
{
setlocale (LC_ALL, "");
g_type_init ();
g_test_init (&argc, &argv, NULL);
g_test_add_func ("/MM/mbm/e2ipcfg", test_e2ipcfg);

View File

@@ -515,7 +515,6 @@ int main (int argc, char **argv)
{
setlocale (LC_ALL, "");
g_type_init ();
g_test_init (&argc, &argv, NULL);
g_test_add_func ("/MM/telit/csim", test_mm_telit_parse_csim_response);

View File

@@ -144,7 +144,6 @@ int main (int argc, char **argv)
{
setlocale (LC_ALL, "");
g_type_init ();
g_test_init (&argc, &argv, NULL);
g_test_add_func ("/MM/test-udev-rules/huawei", test_huawei);

View File

@@ -118,7 +118,6 @@ int main (int argc, char **argv)
GTestSuite *suite;
gint result;
g_type_init ();
g_test_init (&argc, &argv, NULL);
suite = g_test_get_root ();

View File

@@ -828,7 +828,6 @@ int main (int argc, char **argv)
{
setlocale (LC_ALL, "");
g_type_init ();
g_test_init (&argc, &argv, NULL);
g_test_add_func ("/MM/ublox/upincnt/response", test_upincnt_response);

View File

@@ -136,8 +136,6 @@ main (int argc, char *argv[])
GError *err = NULL;
guint name_id;
g_type_init ();
/* Setup application context */
mm_context_init (argc, argv);

View File

@@ -86,7 +86,6 @@ _mm_log (const char *loc,
int main (int argc, char **argv)
{
g_type_init ();
g_test_init (&argc, &argv, NULL);
g_test_add_func ("/ModemManager/AT-serial/echo-removal", at_serial_echo_removal);

View File

@@ -333,7 +333,6 @@ int main (int argc, char **argv)
{
setlocale (LC_ALL, "");
g_type_init ();
g_test_init (&argc, &argv, NULL);
g_test_add_func ("/MM/QMI/Current-Capabilities/UML290", test_uml290);

View File

@@ -3387,7 +3387,6 @@ int main (int argc, char **argv)
gint result;
DevidItem *item = &devids[0];
g_type_init ();
g_test_init (&argc, &argv, NULL);
suite = g_test_get_root ();

View File

@@ -213,9 +213,6 @@ qcdm_test_child (int fd, GAsyncReadyCallback cb)
gboolean success;
GError *error = NULL;
/* In the child */
g_type_init ();
loop = g_main_loop_new (NULL, FALSE);
port = mm_port_serial_qcdm_new_fd (fd);

View File

@@ -865,7 +865,6 @@ int main (int argc, char **argv)
{
setlocale (LC_ALL, "");
g_type_init ();
g_test_init (&argc, &argv, NULL);
g_test_add_func ("/MM/SMS/3GPP/PDU-Parser/pdu1", test_pdu1);

View File

@@ -529,7 +529,6 @@ int main (int argc, char **argv)
{
setlocale (LC_ALL, "");
g_type_init ();
g_test_init (&argc, &argv, NULL);
g_test_add_func ("/MM/SMS/CDMA/PDU-Parser/pdu1", test_pdu1);

View File

@@ -70,7 +70,6 @@ int main (int argc, char **argv)
{
setlocale (LC_ALL, "");
g_type_init ();
g_test_init (&argc, &argv, NULL);
g_test_add_func ("/MM/test-udev-rules/load-cleanup-core", test_load_cleanup_core);

View File

@@ -156,8 +156,6 @@ main (int argc, char *argv[])
return 1;
}
g_type_init ();
loop = g_main_loop_new (NULL, FALSE);
setup_signals ();

View File

@@ -136,8 +136,6 @@ int main (int argc, char **argv)
setlocale (LC_ALL, "");
g_type_init ();
/* Setup option context, process it and destroy it */
context = g_option_context_new ("- ModemManager udev rules testing");
g_option_context_add_main_entries (context, main_entries, NULL);

View File

@@ -259,8 +259,6 @@ int main (int argc, char **argv)
setlocale (LC_ALL, "");
g_type_init ();
/* Setup option context, process it and destroy it */
context = g_option_context_new ("- ModemManager TTY testing");
g_option_context_add_main_entries (context, main_entries, NULL);