From 98ef5a18aeb1646409e8b5461e3a09a35efb4878 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Fri, 28 Feb 2025 17:57:34 +0100 Subject: [PATCH] xkb: make XkbFreeGeomRows() static Only used within one source file. Signed-off-by: Enrico Weigelt, metux IT consult --- xkb/XKBGAlloc.c | 6 +++--- xkb/xkbgeom.h | 8 -------- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/xkb/XKBGAlloc.c b/xkb/XKBGAlloc.c index 7afaa822e..d09fbc4c7 100644 --- a/xkb/XKBGAlloc.c +++ b/xkb/XKBGAlloc.c @@ -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, §ion->num_rows, §ion->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; diff --git a/xkb/xkbgeom.h b/xkb/xkbgeom.h index 2cf4116ea..433b900bd 100644 --- a/xkb/xkbgeom.h +++ b/xkb/xkbgeom.h @@ -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 */ ,