Remove unused define

This commit is contained in:
Blottiere Paul 2022-02-10 18:15:48 +01:00
parent 5a8a325135
commit e7289b31eb
2 changed files with 3 additions and 8 deletions

View File

@ -289,7 +289,7 @@ PCSCHEMA *pc_schema_from_pcid_uncached(uint32 pcid)
if (SPI_processed <= 0)
{
SPI_finish();
elog(ERROR, "no entry in \"%s\" for pcid = %d", POINTCLOUD_FORMATS, pcid);
elog(ERROR, "no entry in \"%s\" for pcid = %d", formats, pcid);
return NULL;
}
@ -301,8 +301,7 @@ PCSCHEMA *pc_schema_from_pcid_uncached(uint32 pcid)
if (!(xml_spi && srid_spi))
{
SPI_finish();
elog(ERROR, "unable to read row from \"%s\" for pcid = %d",
POINTCLOUD_FORMATS, pcid);
elog(ERROR, "unable to read row from \"%s\" for pcid = %d", formats, pcid);
return NULL;
}
@ -324,7 +323,7 @@ PCSCHEMA *pc_schema_from_pcid_uncached(uint32 pcid)
{
ereport(ERROR, (errcode(ERRCODE_NOT_AN_XML_DOCUMENT),
errmsg("unable to parse XML for pcid = %d in \"%s\"", pcid,
POINTCLOUD_FORMATS)));
formats)));
}
schema->pcid = pcid;

View File

@ -20,10 +20,6 @@
#include "utils/array.h"
#include "utils/builtins.h" /* for pg_atoi */
#define POINTCLOUD_FORMATS "pointcloud_formats"
#define POINTCLOUD_FORMATS_XML "schema"
#define POINTCLOUD_FORMATS_SRID "srid"
#define PG_GETARG_SERPOINT_P(argnum) \
(SERIALIZED_POINT *)PG_DETOAST_DATUM(PG_GETARG_DATUM(argnum))
#define PG_GETARG_SERPATCH_P(argnum) \