xkb: make XkbFreeGeomSections() static
Only used within one source file. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
98ef5a18ae
commit
220b86f119
|
|
@ -296,8 +296,8 @@ _XkbClearSection(char *section_in)
|
|||
return;
|
||||
}
|
||||
|
||||
void
|
||||
XkbFreeGeomSections(XkbGeometryPtr geom, int first, int count, Bool freeAll)
|
||||
static void
|
||||
SrvXkbFreeGeomSections(XkbGeometryPtr geom, int first, int count, Bool freeAll)
|
||||
{
|
||||
_XkbFreeGeomNonLeafElems(freeAll, first, count,
|
||||
&geom->num_sections, &geom->sz_sections,
|
||||
|
|
@ -362,7 +362,7 @@ XkbFreeGeometry(XkbGeometryPtr geom, unsigned which, Bool freeMap)
|
|||
if ((which & XkbGeomShapesMask) && (geom->shapes != NULL))
|
||||
XkbFreeGeomShapes(geom, 0, geom->num_shapes, TRUE);
|
||||
if ((which & XkbGeomSectionsMask) && (geom->sections != NULL))
|
||||
XkbFreeGeomSections(geom, 0, geom->num_sections, TRUE);
|
||||
SrvXkbFreeGeomSections(geom, 0, geom->num_sections, TRUE);
|
||||
if ((which & XkbGeomDoodadsMask) && (geom->doodads != NULL)) {
|
||||
SrvXkbFreeGeomDoodads(geom->doodads, geom->num_doodads, TRUE);
|
||||
geom->doodads = NULL;
|
||||
|
|
|
|||
|
|
@ -29,7 +29,6 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|||
|
||||
#include "xkbstr.h"
|
||||
|
||||
#define XkbFreeGeomSections SrvXkbFreeGeomSections
|
||||
#define XkbFreeGeomPoints SrvXkbFreeGeomPoints
|
||||
#define XkbFreeGeomOutlines SrvXkbFreeGeomOutlines
|
||||
#define XkbFreeGeomShapes SrvXkbFreeGeomShapes
|
||||
|
|
@ -358,13 +357,6 @@ extern void
|
|||
Bool /* freeAll */
|
||||
);
|
||||
|
||||
extern void
|
||||
XkbFreeGeomSections(XkbGeometryPtr /* geom */ ,
|
||||
int /* first */ ,
|
||||
int /* count */ ,
|
||||
Bool /* freeAll */
|
||||
);
|
||||
|
||||
extern void
|
||||
XkbFreeGeomPoints(XkbOutlinePtr /* outline */ ,
|
||||
int /* first */ ,
|
||||
|
|
|
|||
Loading…
Reference in New Issue