pgsql: Remove redundant JSON parser typedefs

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Remove redundant JSON parser typedefs
Date: 2024-04-27 11:10:42
Message-ID: E1s0fx3-000IFo-8y@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Remove redundant JSON parser typedefs

JsonNonTerminal and JsonParserSem were added in commit 3311ea86ed

These names of these two enums are not actually used, so there is no
need for typedefs. Instead use plain enums to declare the constants.

Noticed by Alvaro Herera.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e00b4f79e7367272b436dea6f15d6f421f3d6e1a

Modified Files
--------------
src/common/jsonapi.c | 8 ++++----
src/tools/pgindent/typedefs.list | 2 --
2 files changed, 4 insertions(+), 6 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2024-04-27 12:15:36 Re: pgsql: psql: add an optional execution-count limit to \watch.
Previous Message John Naylor 2024-04-27 07:49:28 pgsql: Small cosmetic fixes in radix tree template