diff options
author | Vicent Marti <tanoku@gmail.com> | 2010-12-23 00:15:09 +0200 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2010-12-23 00:15:09 +0200 |
commit | 9f54fe482dd369ebbae67b0b33f7efde206ba249 (patch) | |
tree | 5b239e63f5040ebece759c5143ea44916d17bb63 /src/errors.h | |
parent | 11f6646f032c669170453e8e359ac337fa9abbb7 (diff) | |
download | libgit2-9f54fe482dd369ebbae67b0b33f7efde206ba249.tar.gz |
Remove git_errno
It was not being used by any methods (only by malloc and calloc), and
since it needs to be TLS, it cannot be exported on DLLs on Windows.
Burn it with fire. The API always returns error codes!
Signed-off-by: Vicent Marti <tanoku@gmail.com>
Diffstat (limited to 'src/errors.h')
-rw-r--r-- | src/errors.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/errors.h b/src/errors.h deleted file mode 100644 index d22a03b33..000000000 --- a/src/errors.h +++ /dev/null @@ -1,24 +0,0 @@ -#ifndef INCLUDE_errors_h__ -#define INCLUDE_errors_h__ - -#include "git2/errors.h" - -/* convenience functions */ -GIT_INLINE(int) git_int_error(int code) -{ - git_errno = code; - return code; -} - -GIT_INLINE(int) git_os_error(void) -{ - return git_int_error(GIT_EOSERR); -} - -GIT_INLINE(void) *git_ptr_error(int code) -{ - git_errno = code; - return NULL; -} - -#endif |