pgsql: More trivial dead code removal: in int_to_roman(), checking for

From: neilc(at)svr1(dot)postgresql(dot)org (Neil Conway)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: More trivial dead code removal: in int_to_roman(), checking for
Date: 2005-06-22 01:43:05
Message-ID: 20050622014305.B7AAE52886@svr1.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
More trivial dead code removal: in int_to_roman(), checking for "num == -1"
is redundant after a check has already been made for "num < 0". The "set"
variable can also be removed, as it is now no longer used. Per checking
with Karel, this is the right fix.

Per Coverity static analysis performed by EnterpriseDB.

Modified Files:
--------------
pgsql/src/backend/utils/adt:
formatting.c (r1.88 -> r1.89)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/formatting.c.diff?r1=1.88&r2=1.89)

Browse pgsql-committers by date

  From Date Subject
Next Message Neil Conway 2005-06-22 02:00:47 pgsql: Correct some code in pg_restore when reading the header of a tar
Previous Message Neil Conway 2005-06-22 01:35:03 pgsql: Add a CONTINUE statement to PL/PgSQL, which can be used to begin