Skip to content

Commit

Permalink
Remove useless headers (#4145)
Browse files Browse the repository at this point in the history
Removes unnecessary headers from C library source files.
  • Loading branch information
derobins authored Mar 15, 2024
1 parent 437f215 commit f3900f2
Show file tree
Hide file tree
Showing 113 changed files with 38 additions and 193 deletions.
2 changes: 0 additions & 2 deletions src/H5A.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@
#include "H5CXprivate.h" /* API Contexts */
#include "H5Eprivate.h" /* Error handling */
#include "H5ESprivate.h" /* Event Sets */
#include "H5FLprivate.h" /* Free Lists */
#include "H5Iprivate.h" /* IDs */
#include "H5MMprivate.h" /* Memory management */
#include "H5Opkg.h" /* Object headers */
#include "H5Sprivate.h" /* Dataspace functions */
#include "H5VLprivate.h" /* Virtual Object Layer */
Expand Down
1 change: 0 additions & 1 deletion src/H5AC.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
#include "H5CXprivate.h" /* API Contexts */
#include "H5Eprivate.h" /* Error handling */
#include "H5Fpkg.h" /* Files */
#include "H5Iprivate.h" /* IDs */
#include "H5Pprivate.h" /* Property lists */
#include "H5SLprivate.h" /* Skip Lists */

Expand Down
1 change: 0 additions & 1 deletion src/H5Adeprec.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
#include "H5private.h" /* Generic Functions */
#include "H5Apkg.h" /* Attributes */
#include "H5CXprivate.h" /* API Contexts */
#include "H5Dprivate.h" /* Datasets */
#include "H5Eprivate.h" /* Error handling */
#include "H5Iprivate.h" /* IDs */
#include "H5Opkg.h" /* Object headers */
Expand Down
2 changes: 0 additions & 2 deletions src/H5Aint.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
/***********/
#include "H5private.h" /* Generic Functions */
#include "H5Apkg.h" /* Attributes */
#include "H5CXprivate.h" /* API Contexts */
#include "H5Dprivate.h" /* Datasets */
#include "H5Eprivate.h" /* Error handling */
#include "H5Iprivate.h" /* IDs */
#include "H5MMprivate.h" /* Memory management */
Expand Down
1 change: 0 additions & 1 deletion src/H5Atest.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
/***********/
#include "H5private.h" /* Generic Functions */
#include "H5Apkg.h" /* Attributes */
#include "H5ACprivate.h" /* Metadata cache */
#include "H5CXprivate.h" /* API Contexts */
#include "H5Eprivate.h" /* Error handling */
#include "H5Iprivate.h" /* IDs */
Expand Down
2 changes: 0 additions & 2 deletions src/H5B.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,8 @@
#include "H5Bpkg.h" /* B-link trees */
#include "H5CXprivate.h" /* API Contexts */
#include "H5Eprivate.h" /* Error handling */
#include "H5Iprivate.h" /* IDs */
#include "H5MFprivate.h" /* File memory management */
#include "H5MMprivate.h" /* Memory management */
#include "H5Pprivate.h" /* Property lists */

/****************/
/* Local Macros */
Expand Down
7 changes: 3 additions & 4 deletions src/H5B2dbg.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@
/***********/
/* Headers */
/***********/
#include "H5private.h" /* Generic Functions */
#include "H5B2pkg.h" /* v2 B-trees */
#include "H5Eprivate.h" /* Error handling */
#include "H5FLprivate.h" /* Free Lists */
#include "H5private.h" /* Generic Functions */
#include "H5B2pkg.h" /* v2 B-trees */
#include "H5Eprivate.h" /* Error handling */

/****************/
/* Local Macros */
Expand Down
1 change: 0 additions & 1 deletion src/H5Cimage.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
#include "H5Fpkg.h" /* Files */
#include "H5FDprivate.h" /* File drivers */
#include "H5FLprivate.h" /* Free Lists */
#include "H5MFprivate.h" /* File memory management */
#include "H5MMprivate.h" /* Memory management */

/****************/
Expand Down
1 change: 0 additions & 1 deletion src/H5Ctag.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
#include "H5Eprivate.h" /* Error Handling */
#include "H5Fpkg.h" /* Files */
#include "H5FLprivate.h" /* Free Lists */
#include "H5MMprivate.h" /* Memory management */

/****************/
/* Local Macros */
Expand Down
1 change: 0 additions & 1 deletion src/H5Dbtree.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
#include "H5Fprivate.h" /* Files */
#include "H5FDprivate.h" /* File drivers */
#include "H5FLprivate.h" /* Free Lists */
#include "H5Iprivate.h" /* IDs */
#include "H5MFprivate.h" /* File space management */
#include "H5MMprivate.h" /* Memory management */
#include "H5Oprivate.h" /* Object headers */
Expand Down
2 changes: 0 additions & 2 deletions src/H5Dcontig.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@
#include "H5Iprivate.h" /* IDs */
#include "H5MFprivate.h" /* File memory management */
#include "H5MMprivate.h" /* Memory management */
#include "H5FOprivate.h" /* File objects */
#include "H5Oprivate.h" /* Object headers */
#include "H5Pprivate.h" /* Property lists */
#include "H5PBprivate.h" /* Page Buffer */
#include "H5VMprivate.h" /* Vector and array functions */

Expand Down
1 change: 0 additions & 1 deletion src/H5Ddbg.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
/* Headers */
/***********/
#include "H5private.h" /* Generic Functions */
#include "H5CXprivate.h" /* API Contexts */
#include "H5Dpkg.h" /* Datasets */
#include "H5Eprivate.h" /* Error handling */
#include "H5Iprivate.h" /* IDs */
Expand Down
2 changes: 0 additions & 2 deletions src/H5Dfill.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,9 @@
/* Headers */
/***********/
#include "H5private.h" /* Generic Functions */
#include "H5CXprivate.h" /* API Contexts */
#include "H5Dpkg.h" /* Dataset functions */
#include "H5Eprivate.h" /* Error handling */
#include "H5FLprivate.h" /* Free Lists */
#include "H5Iprivate.h" /* IDs */
#include "H5MMprivate.h" /* Memory management */
#include "H5VMprivate.h" /* Vector and array functions */
#include "H5WBprivate.h" /* Wrapped Buffers */
Expand Down
3 changes: 0 additions & 3 deletions src/H5Dio.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,9 @@
#include "H5Dpkg.h" /* Dataset functions */
#include "H5Eprivate.h" /* Error handling */
#include "H5FLprivate.h" /* Free Lists */
#include "H5Iprivate.h" /* IDs */
#include "H5MMprivate.h" /* Memory management */
#include "H5Sprivate.h" /* Dataspace */

#include "H5VLnative_private.h" /* Native VOL connector */

/****************/
/* Local Macros */
/****************/
Expand Down
1 change: 0 additions & 1 deletion src/H5Dmpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
#include "H5Fprivate.h" /* File access */
#include "H5FDprivate.h" /* File drivers */
#include "H5FLprivate.h" /* Free Lists */
#include "H5Iprivate.h" /* IDs */
#include "H5MMprivate.h" /* Memory management */
#include "H5Oprivate.h" /* Object headers */
#include "H5Pprivate.h" /* Property lists */
Expand Down
1 change: 0 additions & 1 deletion src/H5Dnone.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
#include "H5private.h" /* Generic Functions */
#include "H5Dpkg.h" /* Datasets */
#include "H5Eprivate.h" /* Error handling */
#include "H5FLprivate.h" /* Free Lists */
#include "H5MFprivate.h" /* File space management */
#include "H5VMprivate.h" /* Vector functions */

Expand Down
1 change: 0 additions & 1 deletion src/H5Dscatgath.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include "H5Dpkg.h" /* Dataset functions */
#include "H5Eprivate.h" /* Error handling */
#include "H5FLprivate.h" /* Free Lists */
#include "H5Iprivate.h" /* IDs */
#include "H5MMprivate.h" /* Memory management */

/****************/
Expand Down
2 changes: 0 additions & 2 deletions src/H5Dsingle.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@
#include "H5private.h" /* Generic Functions */
#include "H5Dpkg.h" /* Datasets */
#include "H5Eprivate.h" /* Error handling */
#include "H5FLprivate.h" /* Free Lists */
#include "H5MFprivate.h" /* File space management */
#include "H5VMprivate.h" /* Vector functions */

/****************/
/* Local Macros */
Expand Down
3 changes: 0 additions & 3 deletions src/H5EAcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@
#include "H5private.h" /* Generic Functions */
#include "H5Eprivate.h" /* Error handling */
#include "H5EApkg.h" /* Extensible Arrays */
#include "H5MFprivate.h" /* File memory management */
#include "H5MMprivate.h" /* Memory management */
#include "H5VMprivate.h" /* Vectors and arrays */
#include "H5WBprivate.h" /* Wrapped Buffers */

/****************/
/* Local Macros */
Expand Down
1 change: 0 additions & 1 deletion src/H5EAdblkpage.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
#include "H5Eprivate.h" /* Error handling */
#include "H5EApkg.h" /* Extensible Arrays */
#include "H5FLprivate.h" /* Free Lists */
#include "H5VMprivate.h" /* Vectors and arrays */

/****************/
/* Local Macros */
Expand Down
1 change: 1 addition & 0 deletions src/H5EApkg.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

/* Other private headers needed by this file */
#include "H5FLprivate.h" /* Free Lists */
#include "H5VMprivate.h" /* Vectors and arrays */

/**************************/
/* Package Private Macros */
Expand Down
1 change: 0 additions & 1 deletion src/H5ES.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
#include "H5private.h" /* Generic Functions */
#include "H5Eprivate.h" /* Error handling */
#include "H5ESpkg.h" /* Event Sets */
#include "H5FLprivate.h" /* Free Lists */
#include "H5Iprivate.h" /* IDs */
#include "H5MMprivate.h" /* Memory management */

Expand Down
7 changes: 3 additions & 4 deletions src/H5ESlist.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,9 @@
/***********/
/* Headers */
/***********/
#include "H5private.h" /* Generic Functions */
#include "H5Eprivate.h" /* Error handling */
#include "H5ESpkg.h" /* Event Sets */
#include "H5FLprivate.h" /* Free Lists */
#include "H5private.h" /* Generic Functions */
#include "H5Eprivate.h" /* Error handling */
#include "H5ESpkg.h" /* Event Sets */

/****************/
/* Local Macros */
Expand Down
3 changes: 0 additions & 3 deletions src/H5FAcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@
#include "H5private.h" /* Generic Functions */
#include "H5Eprivate.h" /* Error handling */
#include "H5FApkg.h" /* Fixed Arrays */
#include "H5MFprivate.h" /* File memory management */
#include "H5MMprivate.h" /* Memory management */
#include "H5VMprivate.h" /* Vectors and arrays */
#include "H5WBprivate.h" /* Wrapped Buffers */

/****************/
/* Local Macros */
Expand Down
1 change: 0 additions & 1 deletion src/H5FAdbg.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
#include "H5private.h" /* Generic Functions */
#include "H5Eprivate.h" /* Error handling */
#include "H5FApkg.h" /* Fixed Arrays */
#include "H5Oprivate.h" /* Object Header */
#include "H5VMprivate.h" /* Vector functions */

/****************/
Expand Down
1 change: 0 additions & 1 deletion src/H5FD.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
/***********/
#include "H5private.h" /* Generic Functions */
#include "H5CXprivate.h" /* API Contexts */
#include "H5Dprivate.h" /* Datasets */
#include "H5Eprivate.h" /* Error handling */
#include "H5Fpkg.h" /* File access */
#include "H5FDpkg.h" /* File Drivers */
Expand Down
1 change: 0 additions & 1 deletion src/H5FDfamily.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
#include "H5FDdrvr_module.h" /* This source code file is part of the H5FD driver module */

#include "H5private.h" /* Generic Functions */
#include "H5CXprivate.h" /* API Contexts */
#include "H5Eprivate.h" /* Error handling */
#include "H5Fprivate.h" /* File access */
#include "H5FDprivate.h" /* File drivers */
Expand Down
3 changes: 0 additions & 3 deletions src/H5FDmpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,9 @@
*/

#include "H5private.h" /* Generic Functions */
#include "H5CXprivate.h" /* API Contexts */
#include "H5Eprivate.h" /* Error handling */
#include "H5Fprivate.h" /* File access */
#include "H5FDprivate.h" /* File drivers */
#include "H5FDmpi.h" /* Common MPI file driver */
#include "H5Pprivate.h" /* Property lists */

#ifdef H5_HAVE_PARALLEL

Expand Down
9 changes: 4 additions & 5 deletions src/H5FDperform.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@
/***********/
/* Headers */
/***********/
#include "H5private.h" /* Generic Functions */
#include "H5CXprivate.h" /* API Contexts */
#include "H5Eprivate.h" /* Error handling */
#include "H5FDpkg.h" /* File Drivers */
#include "H5Iprivate.h" /* IDs */
#include "H5private.h" /* Generic Functions */
#include "H5Eprivate.h" /* Error handling */
#include "H5FDpkg.h" /* File Drivers */
#include "H5Iprivate.h" /* IDs */

/*-------------------------------------------------------------------------
* Function: H5FDperform_init
Expand Down
1 change: 0 additions & 1 deletion src/H5FDsec2.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#include "H5FDsec2.h" /* Sec2 file driver */
#include "H5FLprivate.h" /* Free Lists */
#include "H5Iprivate.h" /* IDs */
#include "H5MMprivate.h" /* Memory management */
#include "H5Pprivate.h" /* Property lists */

/* The driver identification number, initialized at runtime */
Expand Down
4 changes: 0 additions & 4 deletions src/H5FDwindows.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,9 @@

#include "H5private.h" /* Generic Functions */
#include "H5Eprivate.h" /* Error handling */
#include "H5Fprivate.h" /* File access */
#include "H5FDprivate.h" /* File drivers */
#include "H5FDwindows.h" /* Windows file driver */
#include "H5FDsec2.h" /* Windows file driver */
#include "H5FLprivate.h" /* Free Lists */
#include "H5Iprivate.h" /* IDs */
#include "H5MMprivate.h" /* Memory management */
#include "H5Pprivate.h" /* Property lists */

#ifdef H5_HAVE_WINDOWS
Expand Down
1 change: 0 additions & 1 deletion src/H5FScache.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
#include "H5MFprivate.h" /* File memory management */
#include "H5MMprivate.h" /* Memory management */
#include "H5VMprivate.h" /* Vectors and arrays */
#include "H5WBprivate.h" /* Wrapped Buffers */

/****************/
/* Local Macros */
Expand Down
1 change: 0 additions & 1 deletion src/H5Fdeprec.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
#include "H5Eprivate.h" /* Error handling */
#include "H5Fpkg.h" /* File access */
#include "H5Iprivate.h" /* IDs */
#include "H5SMprivate.h" /* Shared object header messages */

#include "H5VLnative_private.h" /* Native VOL connector */

Expand Down
1 change: 0 additions & 1 deletion src/H5Fint.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#include "H5FDprivate.h" /* File drivers */
#include "H5Gprivate.h" /* Groups */
#include "H5Iprivate.h" /* IDs */
#include "H5Lprivate.h" /* Links */
#include "H5MFprivate.h" /* File memory management */
#include "H5MMprivate.h" /* Memory management */
#include "H5Pprivate.h" /* Property lists */
Expand Down
1 change: 0 additions & 1 deletion src/H5Fio.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
#include "H5Eprivate.h" /* Error handling */
#include "H5Fpkg.h" /* File access */
#include "H5FDprivate.h" /* File drivers */
#include "H5Iprivate.h" /* IDs */
#include "H5PBprivate.h" /* Page Buffer */

/****************/
Expand Down
4 changes: 0 additions & 4 deletions src/H5Fmount.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,11 @@

/* Packages needed by this file... */
#include "H5private.h" /* Generic Functions */
#include "H5ACprivate.h" /* Metadata cache */
#include "H5CXprivate.h" /* API Contexts */
#include "H5Eprivate.h" /* Error handling */
#include "H5Fpkg.h" /* File access */
#include "H5Gprivate.h" /* Groups */
#include "H5Iprivate.h" /* IDs */
#include "H5MMprivate.h" /* Memory management */
#include "H5Pprivate.h" /* Property lists */
#include "H5VLprivate.h" /* Virtual Object Layer */

/* PRIVATE PROTOTYPES */
static void H5F__mount_count_ids_recurse(H5F_t *f, unsigned *nopen_files, unsigned *nopen_objs);
Expand Down
1 change: 0 additions & 1 deletion src/H5Fsuper.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
/***********/
#include "H5private.h" /* Generic Functions */
#include "H5ACprivate.h" /* Metadata cache */
#include "H5CXprivate.h" /* API Contexts */
#include "H5Eprivate.h" /* Error handling */
#include "H5Fpkg.h" /* File access */
#include "H5FDprivate.h" /* File drivers */
Expand Down
2 changes: 0 additions & 2 deletions src/H5Fsuper_cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@
#include "H5FDprivate.h" /* File drivers */
#include "H5FLprivate.h" /* Free Lists */
#include "H5Gpkg.h" /* Groups */
#include "H5Iprivate.h" /* IDs */
#include "H5MMprivate.h" /* Memory management */
#include "H5Pprivate.h" /* Property lists */

/****************/
/* Local Macros */
Expand Down
2 changes: 0 additions & 2 deletions src/H5Gcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@
#include "H5private.h" /* Generic Functions */
#include "H5Eprivate.h" /* Error handling */
#include "H5Gpkg.h" /* Groups */
#include "H5MFprivate.h" /* File memory management */
#include "H5MMprivate.h" /* Memory management */
#include "H5WBprivate.h" /* Wrapped Buffers */

/****************/
/* Local Macros */
Expand Down
1 change: 0 additions & 1 deletion src/H5Gdeprec.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
/* Headers */
/***********/
#include "H5private.h" /* Generic Functions */
#include "H5ACprivate.h" /* Metadata cache */
#include "H5CXprivate.h" /* API Contexts */
#include "H5Eprivate.h" /* Error handling */
#include "H5Gpkg.h" /* Groups */
Expand Down
1 change: 0 additions & 1 deletion src/H5Gent.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#include "H5private.h" /* Generic Functions */
#include "H5Eprivate.h" /* Error handling */
#include "H5Fprivate.h" /* File access */
#include "H5FLprivate.h" /* Free Lists */
#include "H5Gpkg.h" /* Groups */
#include "H5HLprivate.h" /* Local Heaps */
#include "H5MMprivate.h" /* Memory management */
Expand Down
Loading

0 comments on commit f3900f2

Please sign in to comment.