From b19c9d32f5cfd566b2987f8ed9ff3b2dde846cb0 Mon Sep 17 00:00:00 2001 From: sfeam Date: Wed, 20 Sep 2017 01:42:33 +0000 Subject: [PATCH] dead code --- ChangeLog | 2 ++ src/interpol.c | 11 +++-------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7f52aac59..8ccdfb1ea 100644 --- a/ChangeLog +++ b/ChangeLog @@ -9,6 +9,8 @@ * src/parse.c (parse_array_assignment): Memory leak. + * src/interpol.c: Dead code. + 2017-09-18 Ethan A Merritt * src/datafile.c (f_columnhead df_set_key_title) src/datafile.h diff --git a/src/interpol.c b/src/interpol.c index f2dd394e1..a9bbd7fa2 100644 --- a/src/interpol.c +++ b/src/interpol.c @@ -1,5 +1,5 @@ #ifndef lint -static char *RCSid() { return RCSid("$Id: interpol.c,v 1.63 2017-08-24 23:32:42 sfeam Exp $"); } +static char *RCSid() { return RCSid("$Id: interpol.c,v 1.64 2017-09-20 01:42:34 sfeam Exp $"); } #endif /* GNUPLOT - interpol.c */ @@ -887,14 +887,9 @@ do_cubic( /* Evaluate cubic spline polynomial */ y = ((sc[l][3] * temp + sc[l][2]) * temp + sc[l][1]) * temp + sc[l][0]; - /* With logarithmic y axis, we need to convert from linear to - * log scale now. */ - if (Y_AXIS.log) { - if (y > 0.) - y = y; - else + /* With logarithmic y axis, we need to convert from linear to log scale now */ + if (Y_AXIS.log && y <= 0) y = symin - (symax - symin); - } dest[i].type = INRANGE; STORE_AND_FIXUP_RANGE(dest[i].x, x, dest[i].type, ixmin, ixmax, X_AXIS.autoscale);