[babl] remove deprecated loss struct member
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [babl] remove deprecated loss struct member
- Date: Mon, 14 Nov 2016 21:16:16 +0000 (UTC)
commit 1886cded1e68ee66d65bc228564c98151d8cb5d3
Author: Øyvind Kolås <pippin gimp org>
Date: Mon Nov 14 22:09:00 2016 +0100
remove deprecated loss struct member
babl/babl-fish-path.c | 1 -
babl/babl-fish.h | 1 -
babl/babl.c | 7 -------
3 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/babl/babl-fish-path.c b/babl/babl-fish-path.c
index c4c447f..e7973a2 100644
--- a/babl/babl-fish-path.c
+++ b/babl/babl-fish-path.c
@@ -296,7 +296,6 @@ babl_fish_path (const Babl *source,
babl->fish.pixels = 0;
babl->fish.error = BABL_MAX_COST_VALUE;
babl->fish_path.cost = BABL_MAX_COST_VALUE;
- babl->fish_path.loss = BABL_MAX_COST_VALUE;
babl->fish_path.conversion_list = babl_list_init_with_size (BABL_HARD_MAX_PATH_LENGTH);
{
diff --git a/babl/babl-fish.h b/babl/babl-fish.h
index 1592329..54d670a 100644
--- a/babl/babl-fish.h
+++ b/babl/babl-fish.h
@@ -66,7 +66,6 @@ typedef struct
{
BablFish fish;
double cost; /* number of ticks *10 + chain_length */
- double loss; /* error introduced */
BablList *conversion_list;
} BablFishPath;
diff --git a/babl/babl.c b/babl/babl.c
index 22c104c..7209c8f 100644
--- a/babl/babl.c
+++ b/babl/babl.c
@@ -151,9 +151,6 @@ babl_fish_serialize (Babl *fish, char *dest, int n)
snprintf (d, n, " cost=%f", fish->fish_path.cost);
n -= strlen (d);d += strlen (d);
- snprintf (d, n, " loss=%f", fish->fish_path.loss);
- n -= strlen (d);d += strlen (d);
-
snprintf (d, n, "\n");
n -= strlen (d);d += strlen (d);
@@ -343,10 +340,6 @@ static void babl_init_db (const char *path)
{
babl->fish_path.cost = strtod (token2 + 5, NULL);
}
- else if (!strncmp (token2, "loss=", 5))
- {
- babl->fish_path.loss = strtod (token2 + 5, NULL);
- }
else if (!strncmp (token2, "pixels=", 7))
{
babl->fish.pixels = strtol (token2 + 7, NULL, 10);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]