xkb: make XkbFreeGeomPoints() static

Only used within one source file.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2025-02-28 18:43:54 +01:00 committed by Enrico Weigelt, metux IT consult .
parent 220b86f119
commit 5495095e81
2 changed files with 3 additions and 11 deletions

View File

@ -183,8 +183,8 @@ SrvXkbFreeGeomColors(XkbGeometryPtr geom, int first, int count, Bool freeAll)
/***====================================================================***/
void
XkbFreeGeomPoints(XkbOutlinePtr outline, int first, int count, Bool freeAll)
static void
SrvXkbFreeGeomPoints(XkbOutlinePtr outline, int first, int count, Bool freeAll)
{
_XkbFreeGeomLeafElems(freeAll, first, count,
&outline->num_points, &outline->sz_points,
@ -200,7 +200,7 @@ _XkbClearOutline(char *outline_in)
XkbOutlinePtr outline = (XkbOutlinePtr) outline_in;
if (outline->points != NULL)
XkbFreeGeomPoints(outline, 0, outline->num_points, TRUE);
SrvXkbFreeGeomPoints(outline, 0, outline->num_points, TRUE);
return;
}

View File

@ -29,7 +29,6 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "xkbstr.h"
#define XkbFreeGeomPoints SrvXkbFreeGeomPoints
#define XkbFreeGeomOutlines SrvXkbFreeGeomOutlines
#define XkbFreeGeomShapes SrvXkbFreeGeomShapes
#define XkbFreeGeometry SrvXkbFreeGeometry
@ -357,13 +356,6 @@ extern void
Bool /* freeAll */
);
extern void
XkbFreeGeomPoints(XkbOutlinePtr /* outline */ ,
int /* first */ ,
int /* count */ ,
Bool /* freeAll */
);
extern void
XkbFreeGeomOutlines(XkbShapePtr /* shape */ ,
int /* first */ ,