Skip to content
Snippets Groups Projects
Commit 7b311bd7 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Removed function decode_calday().

parent 5bd87893
No related branches found
No related tags found
No related merge requests found
Pipeline #18400 failed
......@@ -99,7 +99,7 @@ encode_day(int daysPerYear, int year, int month, int day)
return rval;
}
int64_t
static int64_t
encode_calday(int calendar, int year, int month, int day)
{
const int dpy = calendar_dpy(calendar);
......@@ -110,17 +110,6 @@ encode_calday(int calendar, int year, int month, int day)
return encode_julday(calendar, year, month, day);
}
void
decode_calday(int calendar, int64_t julday, int *year, int *month, int *day)
{
const int dpy = calendar_dpy(calendar);
if (dpy == 360 || dpy == 365 || dpy == 366)
decode_day(dpy, julday, year, month, day);
else
decode_julday(calendar, julday, year, month, day);
}
int64_t
calDay_encode(int calendar, CdiDate date)
{
......
......@@ -9,9 +9,6 @@
extern "C" {
#endif
int64_t encode_calday(int calendar, int year, int month, int day);
void decode_calday(int calendar, int64_t julday, int *year, int *month, int *day);
int64_t calDay_encode(int calendar, CdiDate date);
CdiDate calDay_decode(int calendar, int64_t julday);
......
......@@ -141,7 +141,7 @@ encode_secofday(int hour, int minute, int second, int ms)
return hour * 3600 + minute * 60 + second + ms / 1000.0;
}
void
static void
decode_secofday(double secondOfDay, int *hour, int *minute, int *second, int *ms)
{
const int fullSeconds = (int) secondOfDay;
......
......@@ -22,7 +22,6 @@ void decode_julday(int calendar, int64_t julianDay, int *year, int *mon, int *da
int64_t encode_julday(int calendar, int year, int month, int day);
double encode_secofday(int hour, int minute, int second, int ms);
void decode_secofday(double secOfDay, int *hour, int *minute, int *second, int *ms);
void julday_add_seconds(int64_t seconds, int64_t *julianDay, double *secondOfDay);
double julday_sub(int64_t julianDay1, double secondOfDay1, int64_t julianDay2, double secondOfDay2, int64_t *days, double *secs);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment