From 4f77f31222c2e4c3de7d9f005e6e3e1a752c68b0 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 31 Oct 2026 00:29:13 -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 2.12.1