summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2012-11-24 22:34:09 +0100
committerLukas Fleischer <calcurse@cryptocrack.de>2012-11-25 18:07:40 +0100
commit69b5293c871af3500f7b80379a5d9d3f5e41d8ad (patch)
treeafd9baa8192a48128a84db21bce127b7f316f486
parentb4bd37902afbe38f86cc174d29ebc9929afd4ddc (diff)
downloadcalcurse-69b5293c871af3500f7b80379a5d9d3f5e41d8ad.tar.gz
calcurse-69b5293c871af3500f7b80379a5d9d3f5e41d8ad.zip
Remove wins_slctd_init()
We only call this once. Remove the wrapper and directly call the wrapped function instead. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
-rw-r--r--src/calcurse.c2
-rw-r--r--src/calcurse.h1
-rw-r--r--src/wins.c6
3 files changed, 1 insertions, 8 deletions
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)
{