diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2019-02-17 22:31:37 +0000 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2019-02-17 22:31:37 +0000 |
commit | e6c6d3bb3d369716a6cf8849f56c8ffc20cf92f3 (patch) | |
tree | f25726212cc83ecaf5a13551b77508f58a4a7a30 /src/util.c | |
parent | cb150e605587ab44c837f3567fe064fa091927ba (diff) | |
download | libgit2-remove_time_monotonic.tar.gz |
Remove `git_time_monotonic`remove_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.
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/util.c b/src/util.c index 984a3d780..a49269b98 100644 --- a/src/util.c +++ b/src/util.c @@ -864,11 +864,6 @@ int git__utf8_iterate(const uint8_t *str, int str_len, int32_t *dst) return length; } -double git_time_monotonic(void) -{ - return git__timer(); -} - size_t git__utf8_valid_buf_length(const uint8_t *str, size_t str_len) { size_t offset = 0; |