From 4ca0f663a918fc04389ff4351b596209902bd11c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 3 Oct 2008 11:56:00 +0200 Subject: list_window: remove list_window_state_t We do not need to save a stack of list window states. When we return to a parent directory, we just have to find the directory which we come from in the parent list. Note that this patch resets the cursor when going to the root directory, but I think it's not that important, and I will deal with that later. --- src/list_window.h | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'src/list_window.h') diff --git a/src/list_window.h b/src/list_window.h index 6bfe5db5d..1d93a363e 100644 --- a/src/list_window.h +++ b/src/list_window.h @@ -23,10 +23,6 @@ typedef struct list_window { int flags; } list_window_t; -typedef struct list_window_state { - GList *list; -} list_window_state_t; - /* create a new list window */ struct list_window *list_window_init(WINDOW *w, @@ -86,13 +82,4 @@ list_window_rfind(struct list_window *lw, int wrap, unsigned rows); -/* list window states */ -list_window_state_t *list_window_init_state(void); -void list_window_free_state(list_window_state_t *state); -void list_window_push_state(list_window_state_t *state, - struct list_window *lw); -bool list_window_pop_state(list_window_state_t *state, struct list_window *lw); - - - #endif -- cgit v1.2.3