# HG changeset patch # User jwe # Date 777306865 0 # Node ID 0788882808bce0b49ceb95c0a8660c768d753941 # Parent aecbe369233b740c3ab50d713873be2cd530db3a [project @ 1994-08-19 14:33:40 by jwe] diff --git a/src/pt-const.cc b/src/pt-const.cc --- a/src/pt-const.cc +++ b/src/pt-const.cc @@ -115,25 +115,6 @@ error ("%s: wrong type argument `%s'", name, tc.type_as_string ()); } -char * -tree_constant::type_as_string (void) const -{ - if (is_real_scalar ()) - return "real scalar"; - else if (is_real_matrix ()) - return "real matrix"; - else if (is_complex_scalar ()) - return "complex scalar"; - else if (is_complex_matrix ()) - return "complex matrix"; - else if (is_string ()) - return "string"; - else if (is_range ()) - return "range"; - else - return ""; -} - /* ;;; Local Variables: *** ;;; mode: C++ *** diff --git a/src/pt-plot.cc b/src/pt-plot.cc --- a/src/pt-plot.cc +++ b/src/pt-plot.cc @@ -396,7 +396,7 @@ } else { - double lo = lower_val.to_scalar (); + double lo = lower_val.double_value (); plot_buf << lo; } } @@ -413,7 +413,7 @@ } else { - double hi = upper_val.to_scalar (); + double hi = upper_val.double_value (); plot_buf << hi; } } @@ -501,7 +501,7 @@ double val; if (tmp.is_defined ()) { - val = tmp.to_scalar (); + val = tmp.double_value (); if (i == 0) plot_buf << " using "; else @@ -592,7 +592,7 @@ tree_constant tmp = linetype->eval (0); if (! error_state && tmp.is_defined ()) { - double val = tmp.to_scalar (); + double val = tmp.double_value (); plot_buf << " " << NINT (val); } else @@ -607,7 +607,7 @@ tree_constant tmp = pointtype->eval (0); if (! error_state && tmp.is_defined ()) { - double val = tmp.to_scalar (); + double val = tmp.double_value (); plot_buf << " " << NINT (val); } else