mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-07 20:40:21 +01:00
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>
This commit is contained in:
parent
932aa29026
commit
9968895e19
1 changed files with 0 additions and 3 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue