Skip to content

Commit b19c9d3

Browse files
author
sfeam
committed
dead code
1 parent d8c7978 commit b19c9d3

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

ChangeLog

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
* src/parse.c (parse_array_assignment): Memory leak.
1111

12+
* src/interpol.c: Dead code.
13+
1214
2017-09-18 Ethan A Merritt <[email protected]>
1315

1416
* src/datafile.c (f_columnhead df_set_key_title) src/datafile.h

src/interpol.c

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#ifndef lint
2-
static char *RCSid() { return RCSid("$Id: interpol.c,v 1.63 2017-08-24 23:32:42 sfeam Exp $"); }
2+
static char *RCSid() { return RCSid("$Id: interpol.c,v 1.64 2017-09-20 01:42:34 sfeam Exp $"); }
33
#endif
44

55
/* GNUPLOT - interpol.c */
@@ -887,14 +887,9 @@ do_cubic(
887887
/* Evaluate cubic spline polynomial */
888888
y = ((sc[l][3] * temp + sc[l][2]) * temp + sc[l][1]) * temp + sc[l][0];
889889

890-
/* With logarithmic y axis, we need to convert from linear to
891-
* log scale now. */
892-
if (Y_AXIS.log) {
893-
if (y > 0.)
894-
y = y;
895-
else
890+
/* With logarithmic y axis, we need to convert from linear to log scale now */
891+
if (Y_AXIS.log && y <= 0)
896892
y = symin - (symax - symin);
897-
}
898893

899894
dest[i].type = INRANGE;
900895
STORE_AND_FIXUP_RANGE(dest[i].x, x, dest[i].type, ixmin, ixmax, X_AXIS.autoscale);

0 commit comments

Comments
 (0)