Diff options
Diffstat (limited to '')
-rw-r--r--source/shared.c21
1 file changed, 0 insertions, 21 deletions
diff --git a/source/shared.c b/source/shared.c
index 183d085..c881fac 100644
--- a/source/shared.c
+++ b/source/shared.c
@@ -154,27 +154,6 @@ static char *expand_macro(char *name, size_t room)
return name + len;
}
-int cgit_die_unless_zero(int result, const char *msg)
-{
- if (result != 0)
- die_errno("%s", msg);
- return result;
-}
-
-int cgit_die_unless_positive(int result, const char *msg)
-{
- if (result <= 0)
- die_errno("%s", msg);
- return result;
-}
-
-int cgit_die_unless_non_negative(int result, const char *msg)
-{
- if (result < 0)
- die_errno("%s", msg);
- return result;
-}
-
struct cgit_repo *cgit_add_repo(const char *url)
{
struct cgit_repo *repo;