summaryrefslogtreecommitdiff
path: root/src/errors.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/errors.h')
-rw-r--r--src/errors.h24
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