mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 01:13:24 +00:00
app,libgimpcolor: drop babl if guards that no longer apply
This commit is contained in:
parent
da289b9c50
commit
a93fbc682e
4 changed files with 1 additions and 36 deletions
|
@ -335,17 +335,6 @@ gimp_babl_format_get_with_alpha (const Babl *format)
|
|||
|
||||
model = babl_get_name (babl_format_get_model (format));
|
||||
|
||||
/* Special-cased because babl_format_has_alpha() doesn't see that these
|
||||
* formats encode alpha. This has been fixed with commit a28309c.
|
||||
* TODO: remove this test when babl 0.1.110 is released and we depend on it.
|
||||
*/
|
||||
#if BABL_MINOR_VERSION == 1 && BABL_MICRO_VERSION <= 108
|
||||
if (g_strcmp0 (model, "HCYA") == 0 ||
|
||||
g_strcmp0 (model, "HSLA") == 0 ||
|
||||
g_strcmp0 (model, "HSVA") == 0)
|
||||
return format;
|
||||
#endif
|
||||
|
||||
/* Assuming we use Babl formats with same type for all components. */
|
||||
type = babl_get_name (babl_format_get_type (format, 0));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue