diff options
| author | Vicent Martà <vicent@github.com> | 2012-07-17 04:14:49 -0700 |
|---|---|---|
| committer | Vicent Martà <vicent@github.com> | 2012-07-17 04:14:49 -0700 |
| commit | 5a8204f8a88c59c2cb07b93930834ef0a5aaf1fc (patch) | |
| tree | 7b35de9453d8edce1574c2a681bc05b71750f0f5 | |
| parent | ea5d2ce4cfa6cec89e2d844a70d1eb24bb401c7d (diff) | |
| parent | 6fc0bdc53e0392a908d6b4c89827e06f2bb19b4a (diff) | |
| download | libgit2-5a8204f8a88c59c2cb07b93930834ef0a5aaf1fc.tar.gz | |
Merge pull request #827 from schu/cleanup-error-cruft
Remove old error handling code
| -rw-r--r-- | src/common.h | 10 | ||||
| -rw-r--r-- | src/global.h | 4 |
2 files changed, 0 insertions, 14 deletions
diff --git a/src/common.h b/src/common.h index 419a8d06b..1db308fc7 100644 --- a/src/common.h +++ b/src/common.h @@ -49,15 +49,6 @@ #include <regex.h> -extern void git___throw(const char *, ...) GIT_FORMAT_PRINTF(1, 2); -#define git__throw(error, ...) \ - (git___throw(__VA_ARGS__), error) - -extern void git___rethrow(const char *, ...) GIT_FORMAT_PRINTF(1, 2); -#define git__rethrow(error, ...) \ - (git___rethrow(__VA_ARGS__), error) - - #define GITERR_CHECK_ALLOC(ptr) if (ptr == NULL) { return -1; } void giterr_set_oom(void); @@ -68,5 +59,4 @@ void giterr_set_regex(const regex_t *regex, int error_code); #include "util.h" - #endif /* INCLUDE_common_h__ */ diff --git a/src/global.h b/src/global.h index 2b525ce07..6e7373fa3 100644 --- a/src/global.h +++ b/src/global.h @@ -10,10 +10,6 @@ #include "mwindow.h" typedef struct { - struct { - char last[1024]; - } error; - git_error *last_error; git_error error_t; |
