Skip to content

Commit c5068d5

Browse files
Alexander Kukushkinjpechane
Alexander Kukushkin
authored andcommitted
DBZ-955 Remove unused function and variable
1 parent 105344a commit c5068d5

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

src/decoderbufs.c

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -280,27 +280,6 @@ static void print_row_msg(StringInfo out, Decoderbufs__RowMessage *rmsg) {
280280

281281
}
282282

283-
/* this doesn't seem to be available in the public api (unfortunate) */
284-
static double numeric_to_double_no_overflow(Numeric num) {
285-
char *tmp;
286-
double val;
287-
char *endptr;
288-
289-
tmp = DatumGetCString(DirectFunctionCall1(numeric_out, NumericGetDatum(num)));
290-
291-
/* unlike float8in, we ignore ERANGE from strtod */
292-
val = strtod(tmp, &endptr);
293-
if (*endptr != '\0') {
294-
/* shouldn't happen ... */
295-
ereport(ERROR,
296-
(errcode(ERRCODE_INVALID_TEXT_REPRESENTATION),
297-
errmsg("invalid input syntax for type double precision: \"%s\"",
298-
tmp)));
299-
}
300-
301-
return val;
302-
}
303-
304283
static bool geography_point_as_decoderbufs_point(Datum datum,
305284
Decoderbufs__Point *p) {
306285
#ifdef USE_POSTGIS
@@ -340,7 +319,6 @@ static bool geography_point_as_decoderbufs_point(Datum datum,
340319
/* set a datum value based on its OID specified by typid */
341320
static void set_datum_value(Decoderbufs__DatumMessage *datum_msg, Oid typid,
342321
Oid typoutput, Datum datum) {
343-
Numeric num;
344322
bytea *valptr = NULL;
345323
const char *output = NULL;
346324
Point *p = NULL;

0 commit comments

Comments
 (0)