From dca8ff54378495d1f08b863e431d2cbdb8acc688 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 31 Oct 2026 14:28:22 -0700 Subject: Move the die wrappers into filter.c --- source/shared.c | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'source/shared.c') 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; -- cgit