Skip to content

Commit

Permalink
frmts/hdf4/hdf-eos: disable lots of code unused by GDAL
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Nov 25, 2024
1 parent 5178303 commit 46870fb
Show file tree
Hide file tree
Showing 4 changed files with 221 additions and 82 deletions.
23 changes: 14 additions & 9 deletions frmts/hdf4/hdf-eos/EHapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ static int32 *EHXsdTable = NULL;
#define MAX_RETRIES 10

/* Function Prototypes */
#if defined(HDFEOS_GD_WRITE_SUPPORT) || defined(HDFEOS_SW_WRITE_SUPPORT)
static intn EHmetalist(const char *, char *);
#endif
static intn EHreset_maxopenfiles(intn);
static intn EHget_maxopenfiles(intn *, intn *);
static intn EHget_numfiles(void);
Expand Down Expand Up @@ -580,7 +582,7 @@ EHidinfo(int32 fid, int32 * HDFfid, int32 * sdInterfaceID)
}



#ifdef UNUSED_BY_GDAL
/*----------------------------------------------------------------------------|
| BEGIN_PROLOG |
| |
Expand Down Expand Up @@ -623,7 +625,7 @@ EHfilename(int32 fid, char *filename)

return (status);
}

#endif



Expand Down Expand Up @@ -1396,6 +1398,7 @@ EHrevflds(const char *dimlist, char *revdimlist)
}


#ifdef UNUSED_BY_GDAL
/*----------------------------------------------------------------------------|
| BEGIN_PROLOG |
| |
Expand Down Expand Up @@ -1511,10 +1514,11 @@ EHcntGROUP(char *metabuf[])

return (count);
}
#endif




#if defined(HDFEOS_GD_WRITE_SUPPORT) || defined(HDFEOS_SW_WRITE_SUPPORT)
/*----------------------------------------------------------------------------|
| BEGIN_PROLOG |
| |
Expand Down Expand Up @@ -1632,11 +1636,11 @@ EHmetalist(const char *instring, char *outstring)

return (status);
}
#endif





#if defined(HDFEOS_GD_WRITE_SUPPORT) || defined(HDFEOS_SW_WRITE_SUPPORT)
/*----------------------------------------------------------------------------|
| BEGIN_PROLOG |
| |
Expand Down Expand Up @@ -2391,6 +2395,7 @@ EHinsertmeta(int32 sdInterfaceID, const char *structname, const char *structcode

return (status);
}
#endif


/*----------------------------------------------------------------------------|
Expand Down Expand Up @@ -2681,7 +2686,7 @@ EHmetagroup(int32 sdInterfaceID, const char *structname, const char *structcode,




#if defined(HDFEOS_GD_WRITE_SUPPORT) || defined(HDFEOS_SW_WRITE_SUPPORT)
/*----------------------------------------------------------------------------|
| BEGIN_PROLOG |
| |
Expand Down Expand Up @@ -2909,12 +2914,12 @@ EHfillfld(int32 sdid, int32 rank, CPL_UNUSED int32 truerank, int32 size, int32 o

return (status);
}
#endif






#ifdef HDFEOS_GD_WRITE_SUPPORT
/*----------------------------------------------------------------------------|
| BEGIN_PROLOG |
| |
Expand Down Expand Up @@ -3058,7 +3063,7 @@ EHbisect(float64(*func) (float64[]), float64 funcParms[], int32 nParms,

return (status);
}

#endif



Expand Down
Loading

0 comments on commit 46870fb

Please sign in to comment.