diff options
author | Mattias Andrée <maandree@kth.se> | 2017-06-19 23:04:56 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2017-06-19 23:04:56 +0200 |
commit | f8099cf3b88124cc0a3b18b3aabf82b3bfd8545a (patch) | |
tree | d6311eaba8a6bca14dea8dadf501d02b2cf514fc | |
parent | Add a utility (not installed) that converts colours (diff) | |
download | libcolour-f8099cf3b88124cc0a3b18b3aabf82b3bfd8545a.tar.gz libcolour-f8099cf3b88124cc0a3b18b3aabf82b3bfd8545a.tar.bz2 libcolour-f8099cf3b88124cc0a3b18b3aabf82b3bfd8545a.tar.xz |
Remove noop
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | libcolour-template.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/libcolour-template.c b/libcolour-template.c index aacc56a..a90b6f1 100644 --- a/libcolour-template.c +++ b/libcolour-template.c @@ -131,7 +131,6 @@ get_primaries(libcolour_rgb_t *cs) { libcolour_colour_t r, g, b, w; TYPE Sr, Sg, Sb; - TYPE M[3][6]; r.model = g.model = b.model = w.model = LIBCOLOUR_CIEXYZ; r.ciexyz.Y = 1; @@ -146,13 +145,6 @@ get_primaries(libcolour_rgb_t *cs) g.ciexyz.X = cs->M[0][1] / Sg, g.ciexyz.Z = cs->M[2][1] / Sg; b.ciexyz.X = cs->M[0][2] / Sb, b.ciexyz.Z = cs->M[2][2] / Sb; - M[0][0] = r.ciexyz.X, M[0][1] = g.ciexyz.X, M[0][2] = b.ciexyz.X, M[0][3] = 1, M[0][4] = 0, M[0][5] = 0; - M[1][0] = r.ciexyz.Y, M[1][1] = g.ciexyz.Y, M[1][2] = b.ciexyz.Y, M[1][3] = 0, M[1][4] = 1, M[1][5] = 0; - M[2][0] = r.ciexyz.Z, M[2][1] = g.ciexyz.Z, M[2][2] = b.ciexyz.Z, M[2][3] = 0, M[2][4] = 0, M[2][5] = 1; - - if (eliminate(M, 3, 6)) - return -1; - w.ciexyz.X = Sr; w.ciexyz.Y = Sg; w.ciexyz.Z = Sb; |