xkb: make XkbFreeGeomRows() 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 17:57:34 +01:00 committed by Enrico Weigelt, metux IT consult .
parent e1d5e85f43
commit 98ef5a18ae
2 changed files with 3 additions and 11 deletions

View File

@ -271,8 +271,8 @@ _XkbClearRow(char *row_in)
return;
}
void
XkbFreeGeomRows(XkbSectionPtr section, int first, int count, Bool freeAll)
static void
SrvXkbFreeGeomRows(XkbSectionPtr section, int first, int count, Bool freeAll)
{
_XkbFreeGeomNonLeafElems(freeAll, first, count,
&section->num_rows, &section->sz_rows,
@ -288,7 +288,7 @@ _XkbClearSection(char *section_in)
XkbSectionPtr section = (XkbSectionPtr) section_in;
if (section->rows != NULL)
XkbFreeGeomRows(section, 0, section->num_rows, TRUE);
SrvXkbFreeGeomRows(section, 0, section->num_rows, TRUE);
if (section->doodads != NULL) {
SrvXkbFreeGeomDoodads(section->doodads, section->num_doodads, TRUE);
section->doodads = NULL;

View File

@ -29,7 +29,6 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "xkbstr.h"
#define XkbFreeGeomRows SrvXkbFreeGeomRows
#define XkbFreeGeomSections SrvXkbFreeGeomSections
#define XkbFreeGeomPoints SrvXkbFreeGeomPoints
#define XkbFreeGeomOutlines SrvXkbFreeGeomOutlines
@ -359,13 +358,6 @@ extern void
Bool /* freeAll */
);
extern void
XkbFreeGeomRows(XkbSectionPtr /* section */ ,
int /* first */ ,
int /* count */ ,
Bool /* freeAll */
);
extern void
XkbFreeGeomSections(XkbGeometryPtr /* geom */ ,
int /* first */ ,