@@ -1558,48 +1558,6 @@ struct object *repo_peel_to_type(struct repository *r,
15581558#define peel_to_type (name , namelen , obj , type ) \
15591559 repo_peel_to_type(the_repository, name, namelen, obj, type)
15601560
1561- enum date_mode_type {
1562- DATE_NORMAL = 0 ,
1563- DATE_HUMAN ,
1564- DATE_RELATIVE ,
1565- DATE_SHORT ,
1566- DATE_ISO8601 ,
1567- DATE_ISO8601_STRICT ,
1568- DATE_RFC2822 ,
1569- DATE_STRFTIME ,
1570- DATE_RAW ,
1571- DATE_UNIX
1572- };
1573-
1574- struct date_mode {
1575- enum date_mode_type type ;
1576- const char * strftime_fmt ;
1577- int local ;
1578- };
1579-
1580- /*
1581- * Convenience helper for passing a constant type, like:
1582- *
1583- * show_date(t, tz, DATE_MODE(NORMAL));
1584- */
1585- #define DATE_MODE (t ) date_mode_from_type(DATE_##t)
1586- struct date_mode * date_mode_from_type (enum date_mode_type type );
1587-
1588- const char * show_date (timestamp_t time , int timezone , const struct date_mode * mode );
1589- void show_date_relative (timestamp_t time , struct strbuf * timebuf );
1590- void show_date_human (timestamp_t time , int tz , const struct timeval * now ,
1591- struct strbuf * timebuf );
1592- int parse_date (const char * date , struct strbuf * out );
1593- int parse_date_basic (const char * date , timestamp_t * timestamp , int * offset );
1594- int parse_expiry_date (const char * date , timestamp_t * timestamp );
1595- void datestamp (struct strbuf * out );
1596- #define approxidate (s ) approxidate_careful((s), NULL)
1597- timestamp_t approxidate_careful (const char * , int * );
1598- timestamp_t approxidate_relative (const char * date );
1599- void parse_date_format (const char * format , struct date_mode * mode );
1600- int date_overflows (timestamp_t date );
1601- time_t tm_to_time_t (const struct tm * tm );
1602-
16031561#define IDENT_STRICT 1
16041562#define IDENT_NO_DATE 2
16051563#define IDENT_NO_NAME 4
@@ -1645,14 +1603,6 @@ struct ident_split {
16451603 */
16461604int split_ident_line (struct ident_split * , const char * , int );
16471605
1648- /*
1649- * Like show_date, but pull the timestamp and tz parameters from
1650- * the ident_split. It will also sanity-check the values and produce
1651- * a well-known sentinel date if they appear bogus.
1652- */
1653- const char * show_ident_date (const struct ident_split * id ,
1654- const struct date_mode * mode );
1655-
16561606/*
16571607 * Compare split idents for equality or strict ordering. Note that we
16581608 * compare only the ident part of the line, ignoring any timestamp.
0 commit comments