diff --git a/src/lib/context.c b/src/lib/context.c index 9adee7b..351c077 100644 --- a/src/lib/context.c +++ b/src/lib/context.c @@ -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) { diff --git a/src/lib/context.h b/src/lib/context.h index 1aa6cb8..fb19aa3 100644 --- a/src/lib/context.h +++ b/src/lib/context.h @@ -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,