app,libgimpcolor: drop babl if guards that no longer apply

This commit is contained in:
Øyvind Kolås 2024-02-24 18:14:36 +01:00
parent da289b9c50
commit a93fbc682e
4 changed files with 1 additions and 36 deletions

View file

@ -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));