Removed unused parameter from apoint_sec2str()

This is no longer needed as of commit 2d89d336.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
Lukas Fleischer 2011-11-09 18:14:23 +01:00
parent 41c33eeb44
commit edad2f39db
4 changed files with 7 additions and 8 deletions

View File

@ -389,7 +389,7 @@ apoint_inday (struct apoint *i, long start)
}
void
apoint_sec2str (struct apoint *o, int type, long day, char *start, char *end)
apoint_sec2str (struct apoint *o, long day, char *start, char *end)
{
struct tm *lt;
time_t t;

View File

@ -468,7 +468,7 @@ app_arg (int add_line, struct date *day, long date, int print_note,
arg_print_date (today);
print_date = 0;
}
apoint_sec2str (apt, APPT, today, apoint_start_time, apoint_end_time);
apoint_sec2str (apt, today, apoint_start_time, apoint_end_time);
fputs (" - ", stdout);
fputs (apoint_start_time, stdout);
fputs (" -> ", stdout);
@ -494,8 +494,7 @@ app_arg (int add_line, struct date *day, long date, int print_note,
print_date = 0;
}
apt = apoint_recur_s2apoint_s (ra);
apoint_sec2str (apt, RECUR_APPT, today, apoint_start_time,
apoint_end_time);
apoint_sec2str (apt, today, apoint_start_time, apoint_end_time);
mem_free (apt->mesg);
mem_free (apt);
fputs (" - ", stdout);

View File

@ -588,7 +588,7 @@ void apoint_delete (unsigned *, unsigned *);
int apoint_cut (unsigned *, unsigned *);
void apoint_paste (unsigned *, unsigned *, int);
unsigned apoint_inday (struct apoint *, long);
void apoint_sec2str (struct apoint *, int, long, char *, char *);
void apoint_sec2str (struct apoint *, long, char *, char *);
void apoint_write (struct apoint *, FILE *);
struct apoint *apoint_scan (FILE *, struct tm, struct tm, char, char *);
struct apoint *apoint_get (long, int);

View File

@ -327,7 +327,7 @@ display_item_date (int incolor, struct apoint *i, int type, long date,
int recur = 0;
win = apad.ptrwin;
apoint_sec2str (i, type, date, a_st, a_end);
apoint_sec2str (i, date, a_st, a_end);
if (type == RECUR_EVNT || type == RECUR_APPT)
recur = 1;
if (incolor == 0)
@ -440,8 +440,8 @@ day_write_pad (long date, int width, int length, int incolor)
{
day_saved_item.type = day->type;
day_saved_item.mesg = day->mesg;
apoint_sec2str (&a, day->type, date,
day_saved_item.start, day_saved_item.end);
apoint_sec2str (&a, date, day_saved_item.start,
day_saved_item.end);
}
display_item_date (item_number - incolor, &a, day->type,
date, line + 1, x_pos);