[babl] babl: remove unused babl_space_get_chromaticities



commit cc29a763ff19ab743c977ab77da2ffa6087365ba
Author: Øyvind Kolås <pippin gimp org>
Date:   Sat Aug 26 18:56:12 2017 +0200

    babl: remove unused babl_space_get_chromaticities

 babl/babl-internal.h |   12 ------------
 babl/babl-space.c    |   23 ++---------------------
 2 files changed, 2 insertions(+), 33 deletions(-)
---
diff --git a/babl/babl-internal.h b/babl/babl-internal.h
index 9ba8a85..e50fd91 100644
--- a/babl/babl-internal.h
+++ b/babl/babl-internal.h
@@ -343,18 +343,6 @@ double babl_trc_to_linear   (const Babl *trc, double value);
 float babl_trc_from_linearf (const Babl *trc, float value);
 float babl_trc_to_linearf   (const Babl *trc, float value);
 
-/**
- * babl_space_get_chromaticities:
- *
- * Returns the CIE xyY chromaticity values for white point and primaries for a
- * space.
- */
-void babl_space_get_chromaticities  (const Babl *space,
-                                     double *wx, double *wy,
-                                     double *rx, double *ry,
-                                     double *gx, double *gy,
-                                     double *bx, double *by);
-
 const Babl *
 babl_trc_new (const char *name,
               BablTRCType type,
diff --git a/babl/babl-space.c b/babl/babl-space.c
index cd7c4e2..9481d9c 100644
--- a/babl/babl-space.c
+++ b/babl/babl-space.c
@@ -22,6 +22,8 @@
 #include "babl-internal.h"
 #include "base/util.h"
 
+
+
 static BablSpace space_db[MAX_SPACES];
 
 static void babl_chromatic_adaptation_matrix (const double *whitepoint,
@@ -112,27 +114,6 @@ static void babl_space_compute_matrices (BablSpace *space)
   memcpy (space->XYZtoRGB, mat, sizeof (mat));
 }
 
-void
-babl_space_get_chromaticities (const Babl *space,
-                               double *xw, double *yw,
-                               double *xr, double *yr,
-                               double *xg, double *yg,
-                               double *xb, double *yb)
-{
-  if (!space)
-    return;
-
-  if (xw) *xw = space->space.xw;
-  if (yw) *yw = space->space.yw;
-
-  if (xr) *xr = space->space.xr;
-  if (yr) *yr = space->space.yr;
-  if (xg) *xg = space->space.xg;
-  if (yg) *yg = space->space.yg;
-  if (xb) *xb = space->space.xb;
-  if (yb) *yb = space->space.yb;
-}
-
 const Babl *
 babl_space (const char *name)
 {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]