Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/date.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-04-21 00:33:35 +0300
committerJunio C Hamano <gitster@pobox.com>2023-04-21 00:33:35 +0300
commitfa9172c70af55a013e7fe2c5c3c97ba63002a7e5 (patch)
treec29cce6d9477cc5c7f1c83c2990aff4f115c385d /date.c
parentcbfe844aa1b6b0b9513f2ae2fc3d18ff3dd385e6 (diff)
parent8a7f0b666fc749166421669fba62b1000321bd26 (diff)
Merge branch 'rs/remove-approxidate-relative'
The approxidate() API has been simplified by losing an extra function that did the same thing as another one. * rs/remove-approxidate-relative: date: remove approxidate_relative()
Diffstat (limited to 'date.c')
-rw-r--r--date.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/date.c b/date.c
index 1fb2cd1b53..7c8650f799 100644
--- a/date.c
+++ b/date.c
@@ -1366,20 +1366,6 @@ static timestamp_t approxidate_str(const char *date,
return (timestamp_t)update_tm(&tm, &now, 0);
}
-timestamp_t approxidate_relative(const char *date)
-{
- struct timeval tv;
- timestamp_t timestamp;
- int offset;
- int errors = 0;
-
- if (!parse_date_basic(date, &timestamp, &offset))
- return timestamp;
-
- get_time(&tv);
- return approxidate_str(date, (const struct timeval *) &tv, &errors);
-}
-
timestamp_t approxidate_careful(const char *date, int *error_ret)
{
struct timeval tv;