From 69b5293c871af3500f7b80379a5d9d3f5e41d8ad Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sat, 24 Nov 2012 22:34:09 +0100 Subject: Remove wins_slctd_init() We only call this once. Remove the wrapper and directly call the wrapped function instead. Signed-off-by: Lukas Fleischer --- src/calcurse.c | 2 +- src/calcurse.h | 1 - src/wins.c | 6 ------ 3 files changed, 1 insertion(+), 8 deletions(-) (limited to 'src') diff --git a/src/calcurse.c b/src/calcurse.c index 000436c..0c8bfa4 100644 --- a/src/calcurse.c +++ b/src/calcurse.c @@ -549,7 +549,7 @@ int main(int argc, char **argv) vars_init(); wins_init(); - wins_slctd_init(); + wins_slctd_set(CAL); notify_init_bar(); wins_reset_status_page(); diff --git a/src/calcurse.h b/src/calcurse.h index 6a6deaf..be18739 100644 --- a/src/calcurse.h +++ b/src/calcurse.h @@ -1030,7 +1030,6 @@ unsigned wins_sbar_wperc(void); void wins_set_sbar_width(unsigned); void wins_sbar_winc(void); void wins_sbar_wdec(void); -void wins_slctd_init(void); enum win wins_slctd(void); void wins_slctd_set(enum win); void wins_slctd_next(void); diff --git a/src/wins.c b/src/wins.c index 65b2d96..45da1d3 100644 --- a/src/wins.c +++ b/src/wins.c @@ -216,12 +216,6 @@ void wins_sbar_wdec(void) sbarwidth_perc--; } -/* Initialize the selected window in calcurse's interface. */ -void wins_slctd_init(void) -{ - wins_slctd_set(CAL); -} - /* Returns an enum which corresponds to the window which is selected. */ enum win wins_slctd(void) { -- cgit v1.2.3