Skip to content

Commit 88cf274

Browse files
committed
date.c: make parse_date_basic() file-scope static
When we dropped vcs-svn experiment at fc47391 (drop vcs-svn experiment, 2020-08-13), we lost the last and the only caller of parse_date_basic(). We still internally make calls to it as we have always done. Make it file-scope static. Signed-off-by: Junio C Hamano <[email protected]>
1 parent 85a2fef commit 88cf274

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

date.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,7 @@ static const timestamp_t timestamp_max = (((timestamp_t)2100 - 1970) * 365 + 32)
874874

875875
/* Gr. strptime is crap for this; it doesn't have a way to require RFC2822
876876
(i.e. English) day/month names, and it doesn't work correctly with %z. */
877-
int parse_date_basic(const char *date, timestamp_t *timestamp, int *offset)
877+
static int parse_date_basic(const char *date, timestamp_t *timestamp, int *offset)
878878
{
879879
struct tm tm;
880880
int tm_gmt;

date.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ void date_mode_release(struct date_mode *mode);
6363

6464
void show_date_relative(timestamp_t time, struct strbuf *timebuf);
6565
int parse_date(const char *date, struct strbuf *out);
66-
int parse_date_basic(const char *date, timestamp_t *timestamp, int *offset);
6766
int parse_expiry_date(const char *date, timestamp_t *timestamp);
6867
void datestamp(struct strbuf *out);
6968
#define approxidate(s) approxidate_careful((s), NULL)

0 commit comments

Comments
 (0)