mirror of https://github.com/GNOME/gimp.git
libgimpconfig: remove more g_assert().
As discussed with mitch on IRC, these asserts make no sense. They can happen if we fail to parse user-side data. Also currently deserialize() does not even pass the GError down so we would always assert on failed parsing. What must be done instead if change the signature of deserialize() and all its implementations, with a GError arg. Then this GError will properly bubble up to the caller for appropriate handling.
This commit is contained in:
parent
7131c220a8
commit
40bebec273
|
@ -539,9 +539,6 @@ gimp_config_deserialize_stream (GimpConfig *config,
|
|||
|
||||
gimp_scanner_unref (scanner);
|
||||
|
||||
if (! success)
|
||||
g_assert (error == NULL || *error != NULL);
|
||||
|
||||
return success;
|
||||
}
|
||||
|
||||
|
@ -586,9 +583,6 @@ gimp_config_deserialize_string (GimpConfig *config,
|
|||
|
||||
gimp_scanner_unref (scanner);
|
||||
|
||||
if (! success)
|
||||
g_assert (error == NULL || *error != NULL);
|
||||
|
||||
return success;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue