Skip to content
Permalink
Browse files
Remove unused variables and functions
  • Loading branch information
rouault committed Jan 17, 2020
1 parent a763545 commit b6fec8be278a0735f30055b55a70ca8e2118977f
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 33 deletions.
@@ -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 */
/* */
@@ -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.
@@ -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?
*/
@@ -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) {
@@ -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 };

0 comments on commit b6fec8b

Please sign in to comment.