commit f774e684705d87ece79ddc4736f45b1e6385a1b8
parent 07494795c61b2314a24207fc9b8e27e185107398
Author: Anselm R. Garbe <garbeam@wmii.de>
Date: Tue, 13 Jun 2006 18:05:15 +0200
removed add/rm_widget, should be done in the specific widget
Diffstat:
2 files changed, 0 insertions(+), 30 deletions(-)
diff --git a/liblitz/blitz.h b/liblitz/blitz.h
@@ -115,9 +115,6 @@ void blitz_drawborder(BlitzDraw *d);
/* layout.c */
BlitzLayout *blitz_create_layout(BlitzWin *win);
-void blitz_add_widget(BlitzWidget **l, BlitzWidget *w);
-void blitz_rm_widget(BlitzWidget **l, BlitzWidget *w);
-int blitz_destroy_layout(BlitzLayout *l);
/* font.c */
unsigned int blitz_textwidth(BlitzFont *font, char *text);
diff --git a/liblitz/layout.c b/liblitz/layout.c
@@ -45,30 +45,3 @@ blitz_create_layout(BlitzWin *win)
l->draw = xdraw;
return l;
}
-
-void
-blitz_add_widget(BlitzWidget **l, BlitzWidget *w)
-{
- BlitzWidget **wt;
- for(wt = l; *wt; wt = &(*wt)->next);
- w->next = nil;
- *wt = w;
-}
-
-void
-blitz_rm_widget(BlitzWidget **l, BlitzWidget *w)
-{
- BlitzWidget **wt;
- for(wt = l; *wt && *wt != w; wt = &(*wt)->next);
- cext_assert(*wt == w);
- *wt = w->next;
-}
-
-int
-blitz_destroy_layout(BlitzLayout *l)
-{
- if(l->cols || l->rows)
- return -1;
- free(l);
- return 0;
-}