diff --git a/libfwupdplugin/fu-plugin.c b/libfwupdplugin/fu-plugin.c index f6c7cc1aa..f1349403b 100644 --- a/libfwupdplugin/fu-plugin.c +++ b/libfwupdplugin/fu-plugin.c @@ -2502,36 +2502,6 @@ fu_plugin_set_config_value_internal(FuPlugin *self, error); } -/** - * fu_plugin_set_secure_config_value: - * @self: a #FuPlugin - * @key: a settings key - * @value: (nullable): a settings value - * @error: (nullable): optional return location for an error - * - * Sets a plugin config file value and updates file so that non-privileged users - * cannot read it. - * - * This function is deprecated, and you should use `FWUPD_PLUGIN_FLAG_SECURE_CONFIG` and - * fu_plugin_set_config_value() instead. - * - * Returns: %TRUE for success - * - * Since: 1.7.4 - **/ -gboolean -fu_plugin_set_secure_config_value(FuPlugin *self, - const gchar *key, - const gchar *value, - GError **error) -{ - g_return_val_if_fail(FU_IS_PLUGIN(self), FALSE); - g_return_val_if_fail(key != NULL, FALSE); - g_return_val_if_fail(error == NULL || *error == NULL, FALSE); - fu_plugin_add_flag(self, FWUPD_PLUGIN_FLAG_SECURE_CONFIG); - return fu_plugin_set_config_value(self, key, value, error); -} - /** * fu_plugin_set_config_value: * @self: a #FuPlugin diff --git a/libfwupdplugin/fu-plugin.h b/libfwupdplugin/fu-plugin.h index 202d3312c..c2f4fd42c 100644 --- a/libfwupdplugin/fu-plugin.h +++ b/libfwupdplugin/fu-plugin.h @@ -455,12 +455,6 @@ void fu_plugin_add_report_metadata(FuPlugin *self, const gchar *key, const gchar *value); gchar * fu_plugin_get_config_value(FuPlugin *self, const gchar *key); -G_DEPRECATED_FOR(fu_plugin_set_config_value) -gboolean -fu_plugin_set_secure_config_value(FuPlugin *self, - const gchar *key, - const gchar *value, - GError **error); gboolean fu_plugin_get_config_value_boolean(FuPlugin *self, const gchar *key); gboolean diff --git a/libfwupdplugin/fwupdplugin.map b/libfwupdplugin/fwupdplugin.map index d34519764..afbd6a9f3 100644 --- a/libfwupdplugin/fwupdplugin.map +++ b/libfwupdplugin/fwupdplugin.map @@ -848,7 +848,6 @@ LIBFWUPDPLUGIN_1.7.4 { fu_firmware_add_patch; fu_firmware_get_bytes_with_patches; fu_lid_state_to_string; - fu_plugin_set_secure_config_value; fu_usb_device_add_interface; fu_usb_device_set_configuration; local: *;