From: Ben Pfaff Date: Wed, 1 Nov 2006 03:36:09 +0000 (+0000) Subject: Remove num_to_string() function, because it is not used anywhere. X-Git-Tag: v0.6.0~708 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02c64395051af942e9aeff20de6685c706ef1023;p=pspp-builds.git Remove num_to_string() function, because it is not used anywhere. --- diff --git a/src/data/ChangeLog b/src/data/ChangeLog index cc557354..9768a579 100644 --- a/src/data/ChangeLog +++ b/src/data/ChangeLog @@ -1,3 +1,7 @@ +Tue Oct 31 19:35:36 2006 Ben Pfaff + + * data-out.c: (num_to_string) Removed, because it was dead code. + Tue Oct 31 18:09:24 2006 Ben Pfaff * data-in.c (parse_trailer): Fix error message. diff --git a/src/data/data-out.c b/src/data/data-out.c index 6106fc30..49a1dbd6 100644 --- a/src/data/data-out.c +++ b/src/data/data-out.c @@ -187,15 +187,6 @@ data_out (char *s, const struct fmt_spec *fp, const union value *v) return ok; } - -/* Converts V into S in F format with width W and D decimal places, - then deletes trailing zeros. S is not null-terminated. */ -void -num_to_string (double v, char *s, int w, int d) -{ - struct fmt_spec f = make_output_format (FMT_F, w, d); - convert_F (s, &f, v); -} /* Main conversion functions. */ diff --git a/src/data/format.h b/src/data/format.h index b7200555..2c7074d2 100644 --- a/src/data/format.h +++ b/src/data/format.h @@ -121,7 +121,6 @@ int translate_fmt (int spss); bool data_out (char *s, const struct fmt_spec *fp, const union value *v); bool fmt_type_from_string (const char *name, int *type); char *fmt_to_string (const struct fmt_spec *); -void num_to_string (double v, char *s, int w, int d); struct fmt_spec make_input_format (int type, int w, int d); struct fmt_spec make_output_format (int type, int w, int d); bool fmt_is_binary (int type);