diff options
| author | Patrick Steinhardt <ps@pks.im> | 2019-09-12 14:29:28 +0200 |
|---|---|---|
| committer | Patrick Steinhardt <ps@pks.im> | 2019-09-21 15:26:19 +0200 |
| commit | f585b129e242bacb4cbecc30a6af727e5b4c2f28 (patch) | |
| tree | fda5c90badddc8258972140ec25fe9d02f6b6cff /src/errors.c | |
| parent | 7aacf0272560c793ff527722560d522bc596f209 (diff) | |
| download | libgit2-f585b129e242bacb4cbecc30a6af727e5b4c2f28.tar.gz | |
posix: remove superseded POSIX regex wrappers
The old POSIX regex wrappers have been superseded by our own regexp API
that provides a higher-level abstraction. Remove the POSIX wrappers in
favor of the new one.
Diffstat (limited to 'src/errors.c')
| -rw-r--r-- | src/errors.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/errors.c b/src/errors.c index 18d6c2dc8..c75f6b17a 100644 --- a/src/errors.c +++ b/src/errors.c @@ -110,21 +110,6 @@ void git_error_set_str(int error_class, const char *string) set_error_from_buffer(error_class); } -int git_error_set_regex(const p_regex_t *regex, int error_code) -{ - char error_buf[1024]; - - assert(error_code); - - p_regerror(error_code, regex, error_buf, sizeof(error_buf)); - git_error_set_str(GIT_ERROR_REGEX, error_buf); - - if (error_code == P_REG_NOMATCH) - return GIT_ENOTFOUND; - - return GIT_EINVALIDSPEC; -} - void git_error_clear(void) { if (GIT_GLOBAL->last_error != NULL) { |
