Skip to content

Commit

Permalink
Remove unused variables and functions
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Jan 17, 2020
1 parent a763545 commit b6fec8b
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 33 deletions.
2 changes: 0 additions & 2 deletions mapogcsld.c
Expand Up @@ -2108,8 +2108,6 @@ int msSLDGetMarkSymbol(mapObj *map, char *pszSymbolName, int bFilled)
return nSymbolId;
}

static const unsigned char PNGsig[8] = {137, 80, 78, 71, 13, 10, 26, 10}; /* 89 50 4E 47 0D 0A 1A 0A hex */

/************************************************************************/
/* msSLDGetGraphicSymbol */
/* */
Expand Down
26 changes: 0 additions & 26 deletions mappostgis.c
Expand Up @@ -305,19 +305,6 @@ wkbReadInt(wkbObj *w)
return i;
}

/*
** Read one double from the WKB and advance the read pointer.
** We assume the endianess of the WKB is the same as this machine.
*/
static inline double
wkbReadDouble(wkbObj *w)
{
double d;
memcpy(&d, w->ptr, sizeof(double));
w->ptr += sizeof(double);
return d;
}

/*
** Read one pointObj (two doubles) from the WKB and advance the read pointer.
** We assume the endianess of the WKB is the same as this machine.
Expand Down Expand Up @@ -741,19 +728,6 @@ wkbConvGeometryToShape(wkbObj *w, shapeObj *shape)
}


/*
** Calculate determinant of a 3x3 matrix. Handy for
** the circle center calculation.
*/
static inline double
arcDeterminant3x3(double *m)
{
/* This had better be a 3x3 matrix or we'll fall to bits */
return m[0] * ( m[4] * m[8] - m[7] * m[5] ) -
m[3] * ( m[1] * m[8] - m[7] * m[2] ) +
m[6] * ( m[1] * m[5] - m[4] * m[2] );
}

/*
** What side of p1->p2 is q on?
*/
Expand Down
4 changes: 0 additions & 4 deletions mapsymbol.c
Expand Up @@ -48,10 +48,6 @@ extern FILE *msyyin;

extern int msyystate;

static const unsigned char PNGsig[8] = {137, 80, 78, 71, 13, 10, 26, 10}; /* 89 50 4E 47 0D 0A 1A 0A hex */
static const unsigned char JPEGsig[3] = {255, 216, 255}; /* FF D8 FF hex */


void freeImageCache(struct imageCacheObj *ic)
{
if(ic) {
Expand Down
1 change: 0 additions & 1 deletion renderers/agg/src/agg_curves.cpp
Expand Up @@ -21,7 +21,6 @@ namespace mapserver
{

//------------------------------------------------------------------------
const double curve_distance_epsilon = 1e-30;
const double curve_collinearity_epsilon = 1e-30;
const double curve_angle_tolerance_epsilon = 0.01;
enum curve_recursion_limit_e { curve_recursion_limit = 32 };
Expand Down

0 comments on commit b6fec8b

Please sign in to comment.