aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2012-06-29 11:37:37 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2012-07-04 08:46:41 +0200
commit3f1359cdeb94c0b09e5c0cee7a487062e4ffc1e2 (patch)
tree40aa0e83f24a27f5ddde2918df4bd64604cc73b6
parentceab447e757e47ad6d41e95f1d3d2cd6bd6782c1 (diff)
downloadcalcurse-3f1359cdeb94c0b09e5c0cee7a487062e4ffc1e2.tar.gz
calcurse-3f1359cdeb94c0b09e5c0cee7a487062e4ffc1e2.zip
Remove unused function day_item_nb()
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
-rw-r--r--src/calcurse.h1
-rw-r--r--src/day.c19
2 files changed, 0 insertions, 20 deletions
diff --git a/src/calcurse.h b/src/calcurse.h
index 25bb780..1fd6010 100644
--- a/src/calcurse.h
+++ b/src/calcurse.h
@@ -678,7 +678,6 @@ unsigned day_chk_busy_slices(struct date, int, int *);
struct day_item *day_cut_item(long, int);
int day_paste_item(struct day_item *, long);
struct day_item *day_get_item(int);
-int day_item_nb(long, int, int);
void day_edit_note(struct day_item *, const char *);
void day_view_note(struct day_item *, const char *);
void day_item_switch_notify(struct day_item *);
diff --git a/src/day.c b/src/day.c
index 2488c59..179b97b 100644
--- a/src/day.c
+++ b/src/day.c
@@ -652,25 +652,6 @@ struct day_item *day_get_item(int item_number)
return LLIST_GET_DATA(LLIST_NTH(&day_items, item_number - 1));
}
-/* Returns the real item number, given its type. */
-int day_item_nb(long date, int day_num, int type)
-{
- int i, nb_item[MAX_TYPES];
- llist_item_t *j;
-
- for (i = 0; i < MAX_TYPES; i++)
- nb_item[i] = 0;
-
- j = LLIST_FIRST(&day_items);
- for (i = 1; i < day_num; i++) {
- struct day_item *day = LLIST_TS_GET_DATA(j);
- nb_item[day->type - 1]++;
- j = LLIST_TS_NEXT(j);
- }
-
- return nb_item[type - 1];
-}
-
/* Attach a note to an appointment or event. */
void day_edit_note(struct day_item *p, const char *editor)
{