Skip to content

Commit e6c6d3b

Browse files
committed
Remove git_time_monotonic
`git_time_monotonic` was added so that non-native bindings like rugged could get high-resolution timing for benchmarking. However, this is outside the scope of libgit2 *and* rugged decided not to use this function in the first place. Google suggests that absolutely _nobody_ is using this function and we don't want to be in the benchmarking business. Remove the function.
1 parent cb150e6 commit e6c6d3b

File tree

2 files changed

+0
-36
lines changed

2 files changed

+0
-36
lines changed

include/git2/sys/time.h

Lines changed: 0 additions & 31 deletions
This file was deleted.

src/util.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -864,11 +864,6 @@ int git__utf8_iterate(const uint8_t *str, int str_len, int32_t *dst)
864864
return length;
865865
}
866866

867-
double git_time_monotonic(void)
868-
{
869-
return git__timer();
870-
}
871-
872867
size_t git__utf8_valid_buf_length(const uint8_t *str, size_t str_len)
873868
{
874869
size_t offset = 0;

0 commit comments

Comments
 (0)