summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2014-01-23 16:06:03 +0100
committerThomas Haller <thaller@redhat.com>2014-02-21 16:20:29 +0100
commit9968895e19690edbc2485a398d5d913ba5df91fb (patch)
treeec74ba39b04a48ae9bc37d3baedef555e4b188ba
parent932aa2902679918987324bedaf6f47e5a77e26bb (diff)
downloadNetworkManager-9968895e19690edbc2485a398d5d913ba5df91fb.tar.gz
libnm-glib: accept omitting callback in nm_remote_connection_*
The functions nm_remote_connection_save(), nm_remote_connection_commit_changes(), and nm_remote_connection_commit_changes_unsaved() indicate in the documentation, that they allow omitting the callback argument. Remove invalid checks for callback. Signed-off-by: Thomas Haller <thaller@redhat.com>
-rw-r--r--libnm-glib/nm-remote-connection.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libnm-glib/nm-remote-connection.c b/libnm-glib/nm-remote-connection.c
index f4640c3d1d..2587093916 100644
--- a/libnm-glib/nm-remote-connection.c
+++ b/libnm-glib/nm-remote-connection.c
@@ -167,7 +167,6 @@ nm_remote_connection_commit_changes (NMRemoteConnection *self,
RemoteCall *call;
g_return_if_fail (NM_IS_REMOTE_CONNECTION (self));
- g_return_if_fail (callback != NULL);
priv = NM_REMOTE_CONNECTION_GET_PRIVATE (self);
@@ -212,7 +211,6 @@ nm_remote_connection_commit_changes_unsaved (NMRemoteConnection *connection,
RemoteCall *call;
g_return_if_fail (NM_IS_REMOTE_CONNECTION (connection));
- g_return_if_fail (callback != NULL);
priv = NM_REMOTE_CONNECTION_GET_PRIVATE (connection);
@@ -254,7 +252,6 @@ nm_remote_connection_save (NMRemoteConnection *connection,
RemoteCall *call;
g_return_if_fail (NM_IS_REMOTE_CONNECTION (connection));
- g_return_if_fail (callback != NULL);
priv = NM_REMOTE_CONNECTION_GET_PRIVATE (connection);