diff options
| author | Michael Biebl <biebl@debian.org> | 2025-02-12 13:46:55 +0100 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2025-02-12 13:46:55 +0100 |
| commit | ec170f43021cdc93a65151f4646875cd3aa42a13 (patch) | |
| tree | edd6f226af21951b7b4ae1954308594413610513 /src/libnm-core-impl/nm-keyfile-utils.c | |
| parent | d5d9f6796c16f29776c619f464811917e46521f4 (diff) | |
| parent | 8bdf070ff046f482f6eb5e2b15ebc216f5d1e3da (diff) | |
Update upstream source from tag 'upstream/1.51.90'
Update to upstream version '1.51.90' with Debian dir 5ed61494ac9853892cd39fb1e4debd23f234a5b9
Diffstat (limited to 'src/libnm-core-impl/nm-keyfile-utils.c')
| -rw-r--r-- | src/libnm-core-impl/nm-keyfile-utils.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/libnm-core-impl/nm-keyfile-utils.c b/src/libnm-core-impl/nm-keyfile-utils.c index 95073bcc..fdf00677 100644 --- a/src/libnm-core-impl/nm-keyfile-utils.c +++ b/src/libnm-core-impl/nm-keyfile-utils.c @@ -682,22 +682,3 @@ nm_keyfile_key_decode(const char *key, char **out_to_free) #endif return name; } - -void -nm_keyfile_add_group(GKeyFile *keyfile, const char *group) -{ - nm_assert(keyfile); - nm_assert(group); - - /* You can only call this function if the group doesn't exist yet. - * Because, we are about to add a dummy key, so we would have to - * be sure that the key doesn't exist. */ - nm_assert(!g_key_file_has_group(keyfile, group)); - - /* Ensure the group is present. - * There is no API for that, so add and remove a dummy key. - * For a profile it matters whether a setting is present or not, - * and we need to ensure that we persist the presence of the setting to keyfile*/ - g_key_file_set_value(keyfile, group, ".X", "1"); - g_key_file_remove_key(keyfile, group, ".X", NULL); -} |