summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKim Woelders <kim@woelders.dk>2021-04-09 20:38:47 +0200
committerKim Woelders <kim@woelders.dk>2021-04-13 06:56:32 +0200
commitbdbea7b38447928f74cfbd63ab75a30650eea8f1 (patch)
treef01f7874011ac1724854b344fffa46e45792ab0a
parent1f6438a1c7a935d4e5724e650d856cfc5d5f3429 (diff)
Remove unused Context functions
-rw-r--r--src/lib/context.c45
-rw-r--r--src/lib/context.h3
2 files changed, 0 insertions, 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)
70 } 70 }
71} 71}
72 72
73void
74__imlib_FreeContextForDisplay(Display * d)
75{
76 Context *ct;
77
78 ct = context;
79 while (ct)
80 {
81 if (ct->display == d)
82 ct->last_use = -(max_context_count * 2);
83 ct = ct->next;
84 }
85 __imlib_FlushContexts();
86}
87
88void
89__imlib_FreeContextForColormap(Display * d, Colormap cm)
90{
91 Context *ct;
92
93 ct = context;
94 while (ct)
95 {
96 if ((ct->display == d) && (ct->colormap == cm))
97 ct->last_use = -(max_context_count * 2);
98 ct = ct->next;
99 }
100 __imlib_FlushContexts();
101}
102
103void
104__imlib_FreeContextForVisual(Display * d, Visual * v)
105{
106 Context *ct;
107
108 ct = context;
109 while (ct)
110 {
111 if ((ct->display == d) && (ct->visual == v))
112 ct->last_use = -(max_context_count * 2);
113 ct = ct->next;
114 }
115 __imlib_FlushContexts();
116}
117
118Context * 73Context *
119__imlib_FindContext(Display * d, Visual * v, Colormap c, int depth) 74__imlib_FindContext(Display * d, Visual * v, Colormap c, int depth)
120{ 75{
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 {
23void __imlib_SetMaxContexts(int num); 23void __imlib_SetMaxContexts(int num);
24int __imlib_GetMaxContexts(void); 24int __imlib_GetMaxContexts(void);
25void __imlib_FlushContexts(void); 25void __imlib_FlushContexts(void);
26void __imlib_FreeContextForDisplay(Display * d);
27void __imlib_FreeContextForColormap(Display * d, Colormap cm);
28void __imlib_FreeContextForVisual(Display * d, Visual * v);
29Context *__imlib_FindContext(Display * d, Visual * v, Colormap c, 26Context *__imlib_FindContext(Display * d, Visual * v, Colormap c,
30 int depth); 27 int depth);
31Context *__imlib_NewContext(Display * d, Visual * v, Colormap c, 28Context *__imlib_NewContext(Display * d, Visual * v, Colormap c,