DBZ-955 Remove unused function and variable

pull/16/head v0.9.0.Beta1
Alexander Kukushkin 2018-10-29 11:58:45 +01:00 committed by Jiri Pechanec
parent 105344ac58
commit c5068d5b42
1 changed files with 0 additions and 22 deletions

View File

@ -280,27 +280,6 @@ static void print_row_msg(StringInfo out, Decoderbufs__RowMessage *rmsg) {
}
/* this doesn't seem to be available in the public api (unfortunate) */
static double numeric_to_double_no_overflow(Numeric num) {
char *tmp;
double val;
char *endptr;
tmp = DatumGetCString(DirectFunctionCall1(numeric_out, NumericGetDatum(num)));
/* unlike float8in, we ignore ERANGE from strtod */
val = strtod(tmp, &endptr);
if (*endptr != '\0') {
/* shouldn't happen ... */
ereport(ERROR,
(errcode(ERRCODE_INVALID_TEXT_REPRESENTATION),
errmsg("invalid input syntax for type double precision: \"%s\"",
tmp)));
}
return val;
}
static bool geography_point_as_decoderbufs_point(Datum datum,
Decoderbufs__Point *p) {
#ifdef USE_POSTGIS
@ -340,7 +319,6 @@ static bool geography_point_as_decoderbufs_point(Datum datum,
/* set a datum value based on its OID specified by typid */
static void set_datum_value(Decoderbufs__DatumMessage *datum_msg, Oid typid,
Oid typoutput, Datum datum) {
Numeric num;
bytea *valptr = NULL;
const char *output = NULL;
Point *p = NULL;