Skip to content

Commit

Permalink
dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
sfeam committed Sep 20, 2017
1 parent d8c7978 commit b19c9d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

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

* src/interpol.c: Dead code.

2017-09-18 Ethan A Merritt <[email protected]>

* src/datafile.c (f_columnhead df_set_key_title) src/datafile.h
Expand Down
11 changes: 3 additions & 8 deletions src/interpol.c
Original file line number Diff line number Diff line change
@@ -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 */
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit b19c9d3

Please sign in to comment.