From 9be4e5d293b554d8a0800790c57fc707a3b5cf0f Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Mon, 28 Oct 2024 08:02:17 +0100 Subject: Remove unused #include's from contrib, pl, test .c files as determined by IWYU Similar to commit dbbca2cf299, but for contrib, pl, and src/test/. Reviewed-by: Alvaro Herrera Discussion: https://www.postgresql.org/message-id/flat/0df1d5b1-8ca8-4f84-93be-121081bde049%40eisentraut.org --- contrib/tablefunc/tablefunc.c | 2 +- contrib/tablefunc/tablefunc.h | 39 --------------------------------------- 2 files changed, 1 insertion(+), 40 deletions(-) delete mode 100644 contrib/tablefunc/tablefunc.h (limited to 'contrib/tablefunc') diff --git a/contrib/tablefunc/tablefunc.c b/contrib/tablefunc/tablefunc.c index 2a25607a2ad..4b6ae2fe5c4 100644 --- a/contrib/tablefunc/tablefunc.c +++ b/contrib/tablefunc/tablefunc.c @@ -38,10 +38,10 @@ #include "catalog/pg_type.h" #include "common/pg_prng.h" #include "executor/spi.h" +#include "fmgr.h" #include "funcapi.h" #include "lib/stringinfo.h" #include "miscadmin.h" -#include "tablefunc.h" #include "utils/builtins.h" PG_MODULE_MAGIC; diff --git a/contrib/tablefunc/tablefunc.h b/contrib/tablefunc/tablefunc.h deleted file mode 100644 index 2009382ce7d..00000000000 --- a/contrib/tablefunc/tablefunc.h +++ /dev/null @@ -1,39 +0,0 @@ -/* - * contrib/tablefunc/tablefunc.h - * - * - * tablefunc - * - * Sample to demonstrate C functions which return setof scalar - * and setof composite. - * Joe Conway - * And contributors: - * Nabil Sayegh - * - * Copyright (c) 2002-2024, PostgreSQL Global Development Group - * - * Permission to use, copy, modify, and distribute this software and its - * documentation for any purpose, without fee, and without a written agreement - * is hereby granted, provided that the above copyright notice and this - * paragraph and the following two paragraphs appear in all copies. - * - * IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY PARTY FOR - * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING - * LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS - * DOCUMENTATION, EVEN IF THE AUTHOR OR DISTRIBUTORS HAVE BEEN ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES, - * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS - * ON AN "AS IS" BASIS, AND THE AUTHOR AND DISTRIBUTORS HAS NO OBLIGATIONS TO - * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. - * - */ - -#ifndef TABLEFUNC_H -#define TABLEFUNC_H - -#include "fmgr.h" - -#endif /* TABLEFUNC_H */ -- cgit v1.2.3