forked from old/legacy-imlib2
Remove unused Context functions
This commit is contained in:
parent
1f6438a1c7
commit
bdbea7b384
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue