summaryrefslogtreecommitdiff
path: root/src/git2
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2010-12-23 00:15:09 +0200
committerVicent Marti <tanoku@gmail.com>2010-12-23 00:15:09 +0200
commit9f54fe482dd369ebbae67b0b33f7efde206ba249 (patch)
tree5b239e63f5040ebece759c5143ea44916d17bb63 /src/git2
parent11f6646f032c669170453e8e359ac337fa9abbb7 (diff)
downloadlibgit2-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/git2')
-rw-r--r--src/git2/errors.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/git2/errors.h b/src/git2/errors.h
index 98bce4857..627e67c70 100644
--- a/src/git2/errors.h
+++ b/src/git2/errors.h
@@ -33,16 +33,6 @@
*/
GIT_BEGIN_DECL
-/** The git errno. */
-#if defined(GIT_TLS)
-GIT_EXTERN_TLS(int) git_errno;
-
-#elif defined(GIT_HAS_PTHREAD)
-# define git_errno (*git__errno_storage())
-GIT_EXTERN(int *) git__errno_storage(void);
-
-#endif
-
/**
* strerror() for the Git library
* @param num The error code to explain