diff --git a/mapogcsld.c b/mapogcsld.c index 4fe15f2cb4..bd6d85af45 100644 --- a/mapogcsld.c +++ b/mapogcsld.c @@ -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 */ /* */ diff --git a/mappostgis.c b/mappostgis.c index fd67f59c46..c5e1145c81 100644 --- a/mappostgis.c +++ b/mappostgis.c @@ -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? */ diff --git a/mapsymbol.c b/mapsymbol.c index 679ec5eff9..2d5b5b2d84 100644 --- a/mapsymbol.c +++ b/mapsymbol.c @@ -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) { diff --git a/renderers/agg/src/agg_curves.cpp b/renderers/agg/src/agg_curves.cpp index ba33867cac..73521890f7 100644 --- a/renderers/agg/src/agg_curves.cpp +++ b/renderers/agg/src/agg_curves.cpp @@ -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 };