Add clear-storage example

This commit is contained in:
Abhinav Baid 2024-05-23 00:41:40 +01:00 committed by Xelef2000
parent 6872fcde27
commit fdc7355fbe

View file

@ -1828,14 +1828,6 @@ fp_device_clear_storage (FpDevice *device,
return;
}
if (!(priv->features & FP_DEVICE_FEATURE_STORAGE))
{
g_task_return_error (task,
fpi_device_error_new_msg (FP_DEVICE_ERROR_NOT_SUPPORTED,
"Device has no storage."));
return;
}
if (!(priv->features & FP_DEVICE_FEATURE_STORAGE_CLEAR))
{
g_task_return_error (task,