dix: dixfonts: drop unused GetFontPath()

Not used anywhere, neither in Xserver nor in drivers, so no need
to keep it around any longer.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2025-11-19 16:21:23 +01:00 committed by Enrico Weigelt
parent 0bfa59e601
commit d66dea68af
2 changed files with 0 additions and 45 deletions

View File

@ -91,8 +91,6 @@ static int num_fpes = 0;
static xfont2_fpe_funcs_rec const **fpe_functions;
static int num_fpe_types = 0;
static unsigned char *font_path_string;
static int num_slept_fpes = 0;
static int size_slept_fpes = 0;
static FontPathElementPtr *slept_fpes = (FontPathElementPtr *) 0;
@ -1767,44 +1765,6 @@ SetDefaultFontPath(const char *path)
return err;
}
int
GetFontPath(ClientPtr client, int *count, int *length, unsigned char **result)
{
int access;
unsigned char *c;
int len;
FontPathElementPtr fpe;
access = dixCallServerAccessCallback(client, DixGetAttrAccess);
if (access != Success)
return access;
len = 0;
for (int i = 0; i < num_fpes; i++) {
fpe = font_path_elements[i];
len += fpe->name_length + 1;
}
c = realloc(font_path_string, len);
if (c == NULL) {
free(font_path_string);
font_path_string = NULL;
return BadAlloc;
}
font_path_string = c;
*length = 0;
for (int i = 0; i < num_fpes; i++) {
fpe = font_path_elements[i];
*c = fpe->name_length;
*length += *c++;
memcpy(c, fpe->name, fpe->name_length);
c += fpe->name_length;
}
*count = num_fpes;
*result = font_path_string;
return Success;
}
void
DeleteClientFontStuff(ClientPtr client)
{

View File

@ -70,11 +70,6 @@ extern _X_EXPORT int SetFontPath(ClientPtr /*client */ ,
extern _X_EXPORT int SetDefaultFontPath(const char * /*path */ );
/* not used by any known external driver, so can be removed soon */
extern _X_EXPORT int GetFontPath(ClientPtr client,
int *count,
int *length, unsigned char **result) _X_DEPRECATED;
extern _X_EXPORT void DeleteClientFontStuff(ClientPtr /*client */ );
/* Quartz support on Mac OS X pulls in the QuickDraw