Skip to content

Commit b6fec8b

Browse files
committed
Remove unused variables and functions
1 parent a763545 commit b6fec8b

File tree

4 files changed

+0
-33
lines changed

4 files changed

+0
-33
lines changed

mapogcsld.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2108,8 +2108,6 @@ int msSLDGetMarkSymbol(mapObj *map, char *pszSymbolName, int bFilled)
21082108
return nSymbolId;
21092109
}
21102110

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

mappostgis.c

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -305,19 +305,6 @@ wkbReadInt(wkbObj *w)
305305
return i;
306306
}
307307

308-
/*
309-
** Read one double from the WKB and advance the read pointer.
310-
** We assume the endianess of the WKB is the same as this machine.
311-
*/
312-
static inline double
313-
wkbReadDouble(wkbObj *w)
314-
{
315-
double d;
316-
memcpy(&d, w->ptr, sizeof(double));
317-
w->ptr += sizeof(double);
318-
return d;
319-
}
320-
321308
/*
322309
** Read one pointObj (two doubles) from the WKB and advance the read pointer.
323310
** We assume the endianess of the WKB is the same as this machine.
@@ -741,19 +728,6 @@ wkbConvGeometryToShape(wkbObj *w, shapeObj *shape)
741728
}
742729

743730

744-
/*
745-
** Calculate determinant of a 3x3 matrix. Handy for
746-
** the circle center calculation.
747-
*/
748-
static inline double
749-
arcDeterminant3x3(double *m)
750-
{
751-
/* This had better be a 3x3 matrix or we'll fall to bits */
752-
return m[0] * ( m[4] * m[8] - m[7] * m[5] ) -
753-
m[3] * ( m[1] * m[8] - m[7] * m[2] ) +
754-
m[6] * ( m[1] * m[5] - m[4] * m[2] );
755-
}
756-
757731
/*
758732
** What side of p1->p2 is q on?
759733
*/

mapsymbol.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,6 @@ extern FILE *msyyin;
4848

4949
extern int msyystate;
5050

51-
static const unsigned char PNGsig[8] = {137, 80, 78, 71, 13, 10, 26, 10}; /* 89 50 4E 47 0D 0A 1A 0A hex */
52-
static const unsigned char JPEGsig[3] = {255, 216, 255}; /* FF D8 FF hex */
53-
54-
5551
void freeImageCache(struct imageCacheObj *ic)
5652
{
5753
if(ic) {

renderers/agg/src/agg_curves.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ namespace mapserver
2121
{
2222

2323
//------------------------------------------------------------------------
24-
const double curve_distance_epsilon = 1e-30;
2524
const double curve_collinearity_epsilon = 1e-30;
2625
const double curve_angle_tolerance_epsilon = 0.01;
2726
enum curve_recursion_limit_e { curve_recursion_limit = 32 };

0 commit comments

Comments
 (0)