aboutsummaryrefslogtreecommitdiff
path: root/src/include/ipxe/widget.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/ipxe/widget.h')
-rw-r--r--src/include/ipxe/widget.h34
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 */