diff options
author | Dan Williams <dcbw@redhat.com> | 2015-07-01 16:06:52 -0500 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2015-07-02 09:56:35 +0200 |
commit | 604d7db2ca49a44fb095c787793ba3afcb50fdd9 (patch) | |
tree | 8c2c6dbb87c842249cbbcb427f68b157baf1c75e | |
parent | cf76877b49a6a17f351e3d41adf5128218ea6383 (diff) | |
download | network-manager-applet-604d7db2ca49a44fb095c787793ba3afcb50fdd9.tar.gz |
applet/editor: no longer add 'serial' setting
It's not used by NM/MM at all right now (and only relevant to things
that actually use plain old serial ports, like RS232 and some embedded
modems) so don't bother adding it.
-rw-r--r-- | src/connection-editor/page-mobile.c | 17 | ||||
-rw-r--r-- | src/mobile-helpers.c | 10 |
2 files changed, 0 insertions, 27 deletions
diff --git a/src/connection-editor/page-mobile.c b/src/connection-editor/page-mobile.c index b15cc1d4..56bfd219 100644 --- a/src/connection-editor/page-mobile.c +++ b/src/connection-editor/page-mobile.c @@ -427,22 +427,6 @@ ce_page_mobile_class_init (CEPageMobileClass *mobile_class) object_class->dispose = dispose; } -static void -add_default_serial_setting (NMConnection *connection) -{ - NMSettingSerial *s_serial; - - s_serial = NM_SETTING_SERIAL (nm_setting_serial_new ()); - g_object_set (s_serial, - NM_SETTING_SERIAL_BAUD, 115200, - NM_SETTING_SERIAL_BITS, 8, - NM_SETTING_SERIAL_PARITY, 'n', - NM_SETTING_SERIAL_STOPBITS, 1, - NULL); - - nm_connection_add_setting (connection, NM_SETTING (s_serial)); -} - typedef struct { NMClient *client; PageNewConnectionResultFunc result_func; @@ -498,7 +482,6 @@ new_connection_mobile_wizard_done (NMAMobileWizard *wizard, g_free (detail); nm_connection_add_setting (connection, type_setting); - add_default_serial_setting (connection); nm_connection_add_setting (connection, nm_setting_ppp_new ()); } diff --git a/src/mobile-helpers.c b/src/mobile-helpers.c index d867b355..fc725b9c 100644 --- a/src/mobile-helpers.c +++ b/src/mobile-helpers.c @@ -193,16 +193,6 @@ mobile_wizard_done (NMAMobileWizard *wizard, } else g_assert_not_reached (); - /* Serial setting */ - setting = nm_setting_serial_new (); - g_object_set (setting, - NM_SETTING_SERIAL_BAUD, 115200, - NM_SETTING_SERIAL_BITS, 8, - NM_SETTING_SERIAL_PARITY, 'n', - NM_SETTING_SERIAL_STOPBITS, 1, - NULL); - nm_connection_add_setting (connection, setting); - nm_connection_add_setting (connection, nm_setting_ppp_new ()); setting = nm_setting_connection_new (); |