Remove unused Context functions

This commit is contained in:
Kim Woelders 2021-04-09 20:38:47 +02:00
parent 1f6438a1c7
commit bdbea7b384
2 changed files with 0 additions and 48 deletions

View File

@ -70,51 +70,6 @@ __imlib_FlushContexts(void)
}
}
void
__imlib_FreeContextForDisplay(Display * d)
{
Context *ct;
ct = context;
while (ct)
{
if (ct->display == d)
ct->last_use = -(max_context_count * 2);
ct = ct->next;
}
__imlib_FlushContexts();
}
void
__imlib_FreeContextForColormap(Display * d, Colormap cm)
{
Context *ct;
ct = context;
while (ct)
{
if ((ct->display == d) && (ct->colormap == cm))
ct->last_use = -(max_context_count * 2);
ct = ct->next;
}
__imlib_FlushContexts();
}
void
__imlib_FreeContextForVisual(Display * d, Visual * v)
{
Context *ct;
ct = context;
while (ct)
{
if ((ct->display == d) && (ct->visual == v))
ct->last_use = -(max_context_count * 2);
ct = ct->next;
}
__imlib_FlushContexts();
}
Context *
__imlib_FindContext(Display * d, Visual * v, Colormap c, int depth)
{

View File

@ -23,9 +23,6 @@ struct _context {
void __imlib_SetMaxContexts(int num);
int __imlib_GetMaxContexts(void);
void __imlib_FlushContexts(void);
void __imlib_FreeContextForDisplay(Display * d);
void __imlib_FreeContextForColormap(Display * d, Colormap cm);
void __imlib_FreeContextForVisual(Display * d, Visual * v);
Context *__imlib_FindContext(Display * d, Visual * v, Colormap c,
int depth);
Context *__imlib_NewContext(Display * d, Visual * v, Colormap c,