Skip to content

Commit 63f850c

Browse files
committed
More formatting.c cleanups.
1 parent 9cd3fb1 commit 63f850c

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

src/backend/utils/adt/formatting.c

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* -----------------------------------------------------------------------
22
* formatting.c
33
*
4-
* $PostgreSQL: pgsql/src/backend/utils/adt/formatting.c,v 1.96 2005/08/17 21:54:50 momjian Exp $
4+
* $PostgreSQL: pgsql/src/backend/utils/adt/formatting.c,v 1.97 2005/08/17 22:06:53 momjian Exp $
55
*
66
*
77
* Portions Copyright (c) 1999-2005, PostgreSQL Global Development Group
@@ -4461,8 +4461,6 @@ NUM_processor(FormatNode *node, NUMDesc *Num, char *inout, char *number,
44614461
#endif
44624462
return Np->number;
44634463
}
4464-
4465-
return NULL;
44664464
}
44674465

44684466
/* ----------
@@ -4639,7 +4637,6 @@ numeric_to_char(PG_FUNCTION_ARGS)
46394637

46404638
if (Num.pre > len)
46414639
plen = Num.pre - len;
4642-
46434640
else if (len > Num.pre)
46444641
{
46454642
fill_str(numstr, '#', Num.pre);
@@ -4847,10 +4844,7 @@ float4_to_char(PG_FUNCTION_ARGS)
48474844
NUM_TOCHAR_prepare;
48484845

48494846
if (IS_ROMAN(&Num))
4850-
{
48514847
numstr = orgnum = int_to_roman((int) rint(value));
4852-
4853-
}
48544848
else
48554849
{
48564850
float4 val = value;
@@ -4891,7 +4885,6 @@ float4_to_char(PG_FUNCTION_ARGS)
48914885

48924886
if (Num.pre > len)
48934887
plen = Num.pre - len;
4894-
48954888
else if (len > Num.pre)
48964889
{
48974890
fill_str(numstr, '#', Num.pre);
@@ -4928,10 +4921,7 @@ float8_to_char(PG_FUNCTION_ARGS)
49284921
NUM_TOCHAR_prepare;
49294922

49304923
if (IS_ROMAN(&Num))
4931-
{
49324924
numstr = orgnum = int_to_roman((int) rint(value));
4933-
4934-
}
49354925
else
49364926
{
49374927
float8 val = value;
@@ -4970,7 +4960,6 @@ float8_to_char(PG_FUNCTION_ARGS)
49704960

49714961
if (Num.pre > len)
49724962
plen = Num.pre - len;
4973-
49744963
else if (len > Num.pre)
49754964
{
49764965
fill_str(numstr, '#', Num.pre);

0 commit comments

Comments
 (0)