[bugs] [PATCH] Remove unused struct pad and variable apad.

---
 src/calcurse.h | 9 ---------
 src/day.c      | 8 ++------
 src/vars.c     | 7 -------
 3 files changed, 2 insertions(+), 22 deletions(-)

diff --git a/src/calcurse.h b/src/calcurse.h
index bad10c9..7e22cd4 100644
--- a/src/calcurse.h
+++ b/src/calcurse.h
@@ -606,14 +606,6 @@ struct listbox {
 	void *cb_data;
 };
 
-/* Pad structure to handle scrolling. */
-struct pad {
-	int width;
-	int length;
-	int first_onscreen;	/* first line to be displayed inside window */
-	WINDOW *ptrwin;		/* pointer to the pad window */
-};
-
 /* Notification bar definition. */
 #define NOTIFY_FLAGGED_ONLY    0
 #define NOTIFY_UNFLAGGED_ONLY  1
@@ -1200,7 +1192,6 @@ extern char path_dpid[BUFSIZ];
 extern char path_dmon_log[BUFSIZ];
 extern char path_hooks[BUFSIZ];
 extern struct conf conf;
-extern struct pad apad;
 extern struct nbar nbar;
 extern struct dmon_conf dmon;
 void vars_init(void);
diff --git a/src/day.c b/src/day.c
index 3e8adbf..92e102f 100644
--- a/src/day.c
+++ b/src/day.c
@@ -368,8 +368,8 @@ day_store_items(long date, int include_captions)
 }
 
 /*
- * Store the events and appointments for the selected day, and write
- * those items in a pad. If selected day is null, then store items for current
+ * Store the events and appointments for the selected day.
+ * If selected day is null, then store items for current
  * day. This is useful to speed up the appointment panel update.
  */
 void day_process_storage(struct date *slctd_date, unsigned day_changed)
@@ -381,10 +381,6 @@ void day_process_storage(struct date *slctd_date, unsigned day_changed)
 	else
 		ui_calendar_store_current_date(&day);
 
-	/* Inits */
-	if (apad.length != 0)
-		delwin(apad.ptrwin);
-
 	/* Store the events and appointments (recursive and normal items). */
 	day_store_items(date2sec(day, 0, 0), 1);
 }
diff --git a/src/vars.c b/src/vars.c
index c2ec106..54f5f4a 100644
--- a/src/vars.c
+++ b/src/vars.c
@@ -93,9 +93,6 @@ char path_hooks[] = "";
 /* Variable to store global configuration. */
 struct conf conf;
 
-/* Variable to handle pads. */
-struct pad apad;
-
 /* Variable to store notify-bar settings. */
 struct nbar nbar;
 
@@ -157,10 +154,6 @@ void vars_init(void)
 
 	ui_calendar_set_first_day_of_week(MONDAY);
 
-	/* Pad structure to scroll text inside the appointment panel */
-	apad.length = 1;
-	apad.first_onscreen = 0;
-
 	/* Attribute definitions for color and non-color terminals */
 	custom_init_attr();
 
-- 
2.15.1

Links