diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-06-27 10:02:40 +0200 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-06-30 14:34:36 +0200 |
commit | 81d97315c7dad26edf1dcfba849d57c3299e0f6b (patch) | |
tree | 9986d243eca4edeaf06a0b4a0c4c24e19715fdfb /src/calcurse.c | |
parent | 57c4f9d8ea3bf760eac418fa31b5c0ff72e786fb (diff) | |
download | calcurse-81d97315c7dad26edf1dcfba849d57c3299e0f6b.zip |
Remove unneeded parameter/return value
The item type parameter/return value no longer needs to be
passed/returned to interact_day_item_{paste,cut}(), since the type
descriptor is saved when cutting an item now.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/calcurse.c')
-rw-r--r-- | src/calcurse.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/calcurse.c b/src/calcurse.c index ed28a30..b868877 100644 --- a/src/calcurse.c +++ b/src/calcurse.c @@ -64,7 +64,6 @@ int main(int argc, char **argv) { struct day_items_nb inday; int no_data_file = 1; - int cut_item = 0; int count; #if ENABLE_NLS @@ -287,7 +286,7 @@ int main(int argc, char **argv) case KEY_GENERIC_CUT: if (wins_slctd() == APP && apoint_hilt() != 0) { - cut_item = interact_day_item_cut(&inday.nb_events, &inday.nb_apoints); + interact_day_item_cut(&inday.nb_events, &inday.nb_apoints); inday = do_storage(0); wins_update(FLAG_CAL | FLAG_APP); } @@ -295,8 +294,7 @@ int main(int argc, char **argv) case KEY_GENERIC_PASTE: if (wins_slctd() == APP) { - interact_day_item_paste(&inday.nb_events, &inday.nb_apoints, cut_item); - cut_item = 0; + interact_day_item_paste(&inday.nb_events, &inday.nb_apoints); inday = do_storage(0); wins_update(FLAG_CAL | FLAG_APP); } |