From 7f1d08cf21e97f5e60d4636bb1e6c287c34ee2df Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Tue, 7 Aug 2012 14:23:24 +0200 Subject: Imported Upstream version 0.9.5.96 --- libnm-util/nm-connection.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'libnm-util/nm-connection.c') diff --git a/libnm-util/nm-connection.c b/libnm-util/nm-connection.c index 80a4996d..e24ec148 100644 --- a/libnm-util/nm-connection.c +++ b/libnm-util/nm-connection.c @@ -486,14 +486,9 @@ nm_connection_get_setting_by_name (NMConnection *connection, const char *name) return type ? nm_connection_get_setting (connection, type) : NULL; } -/** - * nm_connection_get_type_setting: - * @connection: a #NMConnection - * - * Returns: (transfer none): the #NMSetting of the connection base type - */ +/* not exposed until we actually need it */ static NMSetting * -nm_connection_get_type_setting (NMConnection *connection) +_get_type_setting (NMConnection *connection) { NMSettingConnection *s_con; const char *type; @@ -1223,7 +1218,7 @@ nm_connection_get_virtual_iface_name (NMConnection *connection) g_return_val_if_fail (NM_IS_CONNECTION (connection), NULL); - base = nm_connection_get_type_setting (connection); + base = _get_type_setting (connection); g_assert (base); return nm_setting_get_virtual_iface_name (base); -- cgit 1.3.0-6-gf8a5