Remove phase of moon feature

The computation never really worked before and it seems like the feature
is not very helpful, sometimes even confusing (see GitHub issue #21).

The macro ISLEAP is moved to calcurse.h.

Signed-off-by: Lars Henriksen <LarsHenriksen@get2net.dk>
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
Lars Henriksen
2017-09-05 01:15:25 +02:00
committed by Lukas Fleischer
parent 90fe21af88
commit 172efd7179
4 changed files with 2 additions and 185 deletions

View File

@@ -302,6 +302,8 @@ struct date {
unsigned yyyy;
};
#define ISLEAP(y) ((((y) % 4) == 0 && ((y) % 100) != 0) || ((y) % 400) == 0)
/* Appointment definition. */
struct apoint {
long start; /* seconds since 1 jan 1970 */
@@ -740,7 +742,6 @@ void ui_calendar_change_day(int);
void ui_calendar_move(enum move, int);
long ui_calendar_start_of_year(void);
long ui_calendar_end_of_year(void);
const char *ui_calendar_get_pom(time_t);
/* config.c */
void config_load(void);