Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 0665023

Browse files
committed
Remove unnecessary prototypes
Prototypes for functions implementing V1-callable functions are no longer necessary. Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi> Reviewed-by: Thomas Munro <thomas.munro@enterprisedb.com>
1 parent a5da813 commit 0665023

File tree

6 files changed

+0
-76
lines changed

6 files changed

+0
-76
lines changed

contrib/bloom/bloom.h

-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ typedef BloomScanOpaqueData *BloomScanOpaque;
174174

175175
/* blutils.c */
176176
extern void _PG_init(void);
177-
extern Datum blhandler(PG_FUNCTION_ARGS);
178177
extern void initBloomState(BloomState *state, Relation index);
179178
extern void BloomFillMetapage(Relation index, Page metaPage);
180179
extern void BloomInitMetapage(Relation index);

contrib/btree_gist/btree_gist.h

-10
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,4 @@ enum gbtree_type
3434
gbt_t_inet
3535
};
3636

37-
38-
39-
/*
40-
* Generic btree functions
41-
*/
42-
43-
Datum gbtreekey_in(PG_FUNCTION_ARGS);
44-
45-
Datum gbtreekey_out(PG_FUNCTION_ARGS);
46-
4737
#endif

contrib/dblink/dblink.h

-24
Original file line numberDiff line numberDiff line change
@@ -36,28 +36,4 @@
3636

3737
#include "fmgr.h"
3838

39-
/*
40-
* External declarations
41-
*/
42-
extern Datum dblink_connect(PG_FUNCTION_ARGS);
43-
extern Datum dblink_disconnect(PG_FUNCTION_ARGS);
44-
extern Datum dblink_open(PG_FUNCTION_ARGS);
45-
extern Datum dblink_close(PG_FUNCTION_ARGS);
46-
extern Datum dblink_fetch(PG_FUNCTION_ARGS);
47-
extern Datum dblink_record(PG_FUNCTION_ARGS);
48-
extern Datum dblink_send_query(PG_FUNCTION_ARGS);
49-
extern Datum dblink_get_result(PG_FUNCTION_ARGS);
50-
extern Datum dblink_get_connections(PG_FUNCTION_ARGS);
51-
extern Datum dblink_is_busy(PG_FUNCTION_ARGS);
52-
extern Datum dblink_cancel_query(PG_FUNCTION_ARGS);
53-
extern Datum dblink_error_message(PG_FUNCTION_ARGS);
54-
extern Datum dblink_exec(PG_FUNCTION_ARGS);
55-
extern Datum dblink_get_pkey(PG_FUNCTION_ARGS);
56-
extern Datum dblink_build_sql_insert(PG_FUNCTION_ARGS);
57-
extern Datum dblink_build_sql_delete(PG_FUNCTION_ARGS);
58-
extern Datum dblink_build_sql_update(PG_FUNCTION_ARGS);
59-
extern Datum dblink_current_query(PG_FUNCTION_ARGS);
60-
extern Datum dblink_get_notify(PG_FUNCTION_ARGS);
61-
extern Datum dblink_fdw_validator(PG_FUNCTION_ARGS);
62-
6339
#endif /* DBLINK_H */

contrib/isn/isn.h

-19
Original file line numberDiff line numberDiff line change
@@ -30,25 +30,6 @@ typedef uint64 ean13;
3030
#define PG_GETARG_EAN13(n) PG_GETARG_INT64(n)
3131
#define PG_RETURN_EAN13(x) PG_RETURN_INT64(x)
3232

33-
extern Datum isn_out(PG_FUNCTION_ARGS);
34-
extern Datum ean13_out(PG_FUNCTION_ARGS);
35-
extern Datum ean13_in(PG_FUNCTION_ARGS);
36-
extern Datum isbn_in(PG_FUNCTION_ARGS);
37-
extern Datum ismn_in(PG_FUNCTION_ARGS);
38-
extern Datum issn_in(PG_FUNCTION_ARGS);
39-
extern Datum upc_in(PG_FUNCTION_ARGS);
40-
41-
extern Datum isbn_cast_from_ean13(PG_FUNCTION_ARGS);
42-
extern Datum ismn_cast_from_ean13(PG_FUNCTION_ARGS);
43-
extern Datum issn_cast_from_ean13(PG_FUNCTION_ARGS);
44-
extern Datum upc_cast_from_ean13(PG_FUNCTION_ARGS);
45-
46-
extern Datum is_valid(PG_FUNCTION_ARGS);
47-
extern Datum make_valid(PG_FUNCTION_ARGS);
48-
49-
extern Datum accept_weak_input(PG_FUNCTION_ARGS);
50-
extern Datum weak_input_status(PG_FUNCTION_ARGS);
51-
5233
extern void initialize(void);
5334

5435
#endif /* ISN_H */

contrib/pgcrypto/pgcrypto.h

-13
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,4 @@
3434

3535
#include "fmgr.h"
3636

37-
/* exported functions */
38-
Datum pg_digest(PG_FUNCTION_ARGS);
39-
Datum pg_hmac(PG_FUNCTION_ARGS);
40-
Datum pg_gen_salt(PG_FUNCTION_ARGS);
41-
Datum pg_gen_salt_rounds(PG_FUNCTION_ARGS);
42-
Datum pg_crypt(PG_FUNCTION_ARGS);
43-
Datum pg_encrypt(PG_FUNCTION_ARGS);
44-
Datum pg_decrypt(PG_FUNCTION_ARGS);
45-
Datum pg_encrypt_iv(PG_FUNCTION_ARGS);
46-
Datum pg_decrypt_iv(PG_FUNCTION_ARGS);
47-
Datum pg_random_bytes(PG_FUNCTION_ARGS);
48-
Datum pg_random_uuid(PG_FUNCTION_ARGS);
49-
5037
#endif

contrib/tablefunc/tablefunc.h

-9
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,4 @@
3636

3737
#include "fmgr.h"
3838

39-
/*
40-
* External declarations
41-
*/
42-
extern Datum normal_rand(PG_FUNCTION_ARGS);
43-
extern Datum crosstab(PG_FUNCTION_ARGS);
44-
extern Datum crosstab_hash(PG_FUNCTION_ARGS);
45-
extern Datum connectby_text(PG_FUNCTION_ARGS);
46-
extern Datum connectby_text_serial(PG_FUNCTION_ARGS);
47-
4839
#endif /* TABLEFUNC_H */

0 commit comments

Comments
 (0)