diff options
author | Michael Brown <mcb30@ipxe.org> | 2024-06-20 15:48:59 -0700 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2024-06-21 09:57:03 -0700 |
commit | 821bb326f87fbc000376fdc5371e9e53f666267a (patch) | |
tree | 90567dcdf2f2db8008779d570f189a2a731263b3 /src/include/ipxe | |
parent | 162cc51b6db2caa888e2fb834511d7e4af7e0bfe (diff) | |
download | ipxe-821bb326f87fbc000376fdc5371e9e53f666267a.zip ipxe-821bb326f87fbc000376fdc5371e9e53f666267a.tar.gz ipxe-821bb326f87fbc000376fdc5371e9e53f666267a.tar.bz2 |
[hci] Remove the generalised widget user interface abstraction
Remove the now-unused generalised text widget user interface, along
with the associated concept of a widget set and the implementation of
a read-only label widget.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe')
-rw-r--r-- | src/include/ipxe/widget.h | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/include/ipxe/widget.h b/src/include/ipxe/widget.h index 0d8af10..945b467 100644 --- a/src/include/ipxe/widget.h +++ b/src/include/ipxe/widget.h @@ -10,18 +10,9 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); #include <curses.h> -#include <ipxe/list.h> - -/** A text widget set */ -struct widgets { - /** List of widgets (in tab order) */ - struct list_head list; -}; /** A text widget */ struct widget { - /** List of widgets (in tab order) */ - struct list_head list; /** Widget operations */ struct widget_operations *op; @@ -66,17 +57,6 @@ struct widget_operations { }; /** - * Initialise text widget set - * - * @v widgets Text widget set - */ -static inline __attribute__ (( always_inline )) void -init_widgets ( struct widgets *widgets ) { - - INIT_LIST_HEAD ( &widgets->list ); -} - -/** * Initialise text widget * * @v widget Text widget @@ -98,18 +78,6 @@ init_widget ( struct widget *widget, struct widget_operations *op, } /** - * Append text widget - * - * @v widgets Text widget set - * @v widget Text widget - */ -static inline __attribute__ (( always_inline )) void -add_widget ( struct widgets *widgets, struct widget *widget ) { - - list_add_tail ( &widget->list, &widgets->list ); -} - -/** * Draw text widget * * @v widget Text widget @@ -137,6 +105,4 @@ edit_widget ( struct widget *widget, int key ) { return widget->op->edit ( widget, key ); } -extern int widget_ui ( struct widgets *widgets ); - #endif /* _IPXE_WIDGET_H */ |