kwo pushed a commit to branch master.
http://git.enlightenment.org/legacy/imlib2.git/commit/?id=bdbea7b38447928f74cfbd63ab75a30650eea8f1
commit bdbea7b38447928f74cfbd63ab75a30650eea8f1
Author: Kim Woelders <k...@woelders.dk>
Date: Fri Apr 9 20:38:47 2021 +0200
Remove unused Context functions
---
src/lib/context.c | 45 ---------------------------------------------
src/lib/context.h | 3 ---
2 files changed, 48 deletions(-)
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,
--