Skip to content

Commit fb5378b

Browse files
committed
Clean up #included files in src/include directories (apache#1518)
Cleaned up #included files in the .h files in the src/include directories. Additionally, deleted 1 unnecessary header file. modified: src/include/catalog/ag_catalog.h modified: src/include/catalog/ag_graph.h modified: src/include/catalog/ag_label.h modified: src/include/catalog/ag_namespace.h modified: src/include/commands/graph_commands.h modified: src/include/commands/label_commands.h modified: src/include/executor/cypher_executor.h modified: src/include/executor/cypher_utils.h modified: src/include/nodes/ag_nodes.h modified: src/include/nodes/cypher_copyfuncs.h modified: src/include/nodes/cypher_nodes.h modified: src/include/nodes/cypher_outfuncs.h modified: src/include/nodes/cypher_readfuncs.h modified: src/include/optimizer/cypher_createplan.h modified: src/include/optimizer/cypher_pathnode.h modified: src/include/parser/cypher_clause.h modified: src/include/parser/cypher_expr.h modified: src/include/parser/cypher_gram.h modified: src/include/parser/cypher_item.h modified: src/include/parser/cypher_parse_node.h modified: src/include/parser/cypher_parser.h modified: src/include/parser/cypher_transform_entity.h modified: src/include/utils/ag_cache.h modified: src/include/utils/ag_float8_supp.h modified: src/include/utils/ag_func.h modified: src/include/utils/age_global_graph.h modified: src/include/utils/agtype.h modified: src/include/utils/agtype_parser.h modified: src/include/utils/agtype_raw.h modified: src/include/utils/graphid.h modified: src/include/utils/load/ag_load_edges.h modified: src/include/utils/load/ag_load_labels.h modified: src/include/utils/load/age_load.h deleted: src/include/utils/ag_load.h
1 parent 74d027a commit fb5378b

34 files changed

Lines changed: 19 additions & 279 deletions

src/include/catalog/ag_catalog.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
#include "postgres.h"
2424

2525
#include "utils/agtype.h"
26-
#include "utils/graphid.h"
2726

2827
void object_access_hook_init(void);
2928
void object_access_hook_fini(void);

src/include/catalog/ag_graph.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
#ifndef AG_AG_GRAPH_H
2121
#define AG_AG_GRAPH_H
2222

23-
#include "postgres.h"
24-
2523
#include "catalog/ag_catalog.h"
2624

2725
#define Anum_ag_graph_oid 1

src/include/catalog/ag_label.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,8 @@
2020
#ifndef AG_AG_LABEL_H
2121
#define AG_AG_LABEL_H
2222

23-
#include "postgres.h"
24-
2523
#include "nodes/execnodes.h"
2624

27-
#include "catalog/ag_catalog.h"
28-
2925
#define Anum_ag_label_vertex_table_id 1
3026
#define Anum_ag_label_vertex_table_properties 2
3127

src/include/catalog/ag_namespace.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
#ifndef AG_AG_NAMESPACE_H
2121
#define AG_AG_NAMESPACE_H
2222

23-
#include "postgres.h"
24-
2523
Oid ag_catalog_namespace_id(void);
2624
Oid pg_catalog_namespace_id(void);
2725

src/include/commands/graph_commands.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
#ifndef AG_GRAPH_COMMANDS_H
2121
#define AG_GRAPH_COMMANDS_H
2222

23-
#include "postgres.h"
24-
2523
Datum create_graph(PG_FUNCTION_ARGS);
2624

27-
#endif
25+
#endif

src/include/commands/label_commands.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
#ifndef AG_LABEL_COMMANDS_H
2121
#define AG_LABEL_COMMANDS_H
2222

23-
#include "postgres.h"
24-
2523
#define LABEL_TYPE_VERTEX 'v'
2624
#define LABEL_TYPE_EDGE 'e'
2725

src/include/executor/cypher_executor.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
#define AG_CYPHER_EXECUTOR_H
2222

2323
#include "nodes/extensible.h"
24-
#include "nodes/nodes.h"
25-
#include "nodes/plannodes.h"
2624

2725
#define DELETE_SCAN_STATE_NAME "Cypher Delete"
2826
#define SET_SCAN_STATE_NAME "Cypher Set"

src/include/executor/cypher_utils.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,6 @@
2121
#define AG_CYPHER_UTILS_H
2222

2323
#include "access/heapam.h"
24-
#include "access/table.h"
25-
#include "access/tableam.h"
26-
#include "nodes/execnodes.h"
27-
#include "nodes/extensible.h"
28-
#include "nodes/nodes.h"
29-
#include "nodes/plannodes.h"
3024

3125
#include "nodes/cypher_nodes.h"
3226
#include "utils/agtype.h"

src/include/nodes/ag_nodes.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@
2020
#ifndef AG_AG_NODES_H
2121
#define AG_AG_NODES_H
2222

23-
#include "postgres.h"
24-
2523
#include "nodes/extensible.h"
26-
#include "nodes/nodes.h"
2724

2825
// This list must match node_names and node_methods.
2926
typedef enum ag_node_tag

src/include/nodes/cypher_copyfuncs.h

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,33 +20,36 @@
2020
#ifndef AG_CYPHER_COPYFUNCS_H
2121
#define AG_CYPHER_COPYFUNCS_H
2222

23-
#include "postgres.h"
24-
25-
#include "nodes/nodes.h"
26-
2723
/*
2824
* Functions that let AGE's ExtensibleNodes be compatible with
2925
* Postgres' copyObject. We assign each node to its copy function
3026
* in the DEFINE_NODE_METHODS and DEFINE_NODE_METHODS_EXTENDED
3127
* macros in ag_nodes.c
3228
*/
3329

34-
void copy_ag_node(ExtensibleNode *newnode,
35-
const ExtensibleNode *oldnode);
30+
void copy_ag_node(ExtensibleNode *newnode, const ExtensibleNode *oldnode);
3631

3732
// create data structures
38-
void copy_cypher_create_target_nodes(ExtensibleNode *newnode, const ExtensibleNode *from);
39-
void copy_cypher_create_path(ExtensibleNode *newnode, const ExtensibleNode *from);
40-
void copy_cypher_target_node(ExtensibleNode *newnode, const ExtensibleNode *from);
33+
void copy_cypher_create_target_nodes(ExtensibleNode *newnode,
34+
const ExtensibleNode *from);
35+
void copy_cypher_create_path(ExtensibleNode *newnode,
36+
const ExtensibleNode *from);
37+
void copy_cypher_target_node(ExtensibleNode *newnode,
38+
const ExtensibleNode *from);
4139

4240
// set/remove data structures
43-
void copy_cypher_update_information(ExtensibleNode *newnode, const ExtensibleNode *from);
44-
void copy_cypher_update_item(ExtensibleNode *newnode, const ExtensibleNode *from);
41+
void copy_cypher_update_information(ExtensibleNode *newnode,
42+
const ExtensibleNode *from);
43+
void copy_cypher_update_item(ExtensibleNode *newnode,
44+
const ExtensibleNode *from);
4545

4646
// delete data structures
47-
void copy_cypher_delete_information(ExtensibleNode *newnode, const ExtensibleNode *from);
48-
void copy_cypher_delete_item(ExtensibleNode *newnode, const ExtensibleNode *from);
47+
void copy_cypher_delete_information(ExtensibleNode *newnode,
48+
const ExtensibleNode *from);
49+
void copy_cypher_delete_item(ExtensibleNode *newnode,
50+
const ExtensibleNode *from);
4951

5052
// merge data structure
51-
void copy_cypher_merge_information(ExtensibleNode *newnode, const ExtensibleNode *from);
53+
void copy_cypher_merge_information(ExtensibleNode *newnode,
54+
const ExtensibleNode *from);
5255
#endif

0 commit comments

Comments
 (0)