Diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Move the die wrappers into filter.c
Diffstat (limited to '')
-rw-r--r--source/shared.h8
1 file changed, 0 insertions, 8 deletions
diff --git a/source/shared.h b/source/shared.h
index 2633a24..2397f67 100644
--- a/source/shared.h
+++ b/source/shared.h
@@ -17,14 +17,6 @@ typedef void (*filepair_fn)(struct diff_filepair *pair);
typedef void (*linediff_fn)(char *line, int len);
/*
- * Each of these returns its argument untouched when the syscall it wraps
- * succeeded, and dies with the message and errno otherwise.
- */
-extern int cgit_die_unless_zero(int result, const char *msg);
-extern int cgit_die_unless_positive(int result, const char *msg);
-extern int cgit_die_unless_non_negative(int result, const char *msg);
-
-/*
* Append a repository to cgit_repolist and return it, seeded from the current
* global configuration. The returned pointer is invalidated by the next call,
* because the list grows by reallocation.