aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/complex.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2015-05-24 12:20:23 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2015-05-24 12:20:23 -0400
commit91e79260f636ab4d5a43910b6a38bc75651ad14c (patch)
tree10a3d8b52b29ba4529aba393f5371dbd545bdfbb /src/tutorial/complex.c
parent807b9e0dff663c5da875af7907a5106c0ff90673 (diff)
downloadpostgresql-91e79260f636ab4d5a43910b6a38bc75651ad14c.tar.gz
postgresql-91e79260f636ab4d5a43910b6a38bc75651ad14c.zip
Remove no-longer-required function declarations.
Remove a bunch of "extern Datum foo(PG_FUNCTION_ARGS);" declarations that are no longer needed now that PG_FUNCTION_INFO_V1(foo) provides that. Some of these were evidently missed in commit e7128e8dbb305059, but others were cargo-culted in in code added since then. Possibly that can be blamed in part on the fact that we'd not fixed relevant documentation examples, which I've now done.
Diffstat (limited to 'src/tutorial/complex.c')
-rw-r--r--src/tutorial/complex.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/tutorial/complex.c b/src/tutorial/complex.c
index a263110cd2d..ea7051bdebd 100644
--- a/src/tutorial/complex.c
+++ b/src/tutorial/complex.c
@@ -20,23 +20,6 @@ typedef struct Complex
double y;
} Complex;
-/*
- * Since we use V1 function calling convention, all these functions have
- * the same signature as far as C is concerned. We provide these prototypes
- * just to forestall warnings when compiled with gcc -Wmissing-prototypes.
- */
-Datum complex_in(PG_FUNCTION_ARGS);
-Datum complex_out(PG_FUNCTION_ARGS);
-Datum complex_recv(PG_FUNCTION_ARGS);
-Datum complex_send(PG_FUNCTION_ARGS);
-Datum complex_add(PG_FUNCTION_ARGS);
-Datum complex_abs_lt(PG_FUNCTION_ARGS);
-Datum complex_abs_le(PG_FUNCTION_ARGS);
-Datum complex_abs_eq(PG_FUNCTION_ARGS);
-Datum complex_abs_ge(PG_FUNCTION_ARGS);
-Datum complex_abs_gt(PG_FUNCTION_ARGS);
-Datum complex_abs_cmp(PG_FUNCTION_ARGS);
-
/*****************************************************************************
* Input/Output functions