aboutsummaryrefslogtreecommitdiff
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
-rw-r--r--cgit.h2
-rw-r--r--shared.c12
-rw-r--r--ui-shared.c2
3 files changed, 1 insertions, 15 deletions
diff --git a/cgit.h b/cgit.h
index b8b7712..7d7ece7 100644
--- a/cgit.h
+++ b/cgit.h
@@ -334,8 +334,6 @@ extern struct cgit_repo *cgit_get_repoinfo(const char *url);
extern void cgit_repo_config(struct cgit_repo *repo, const char *name,
const char *value);
-extern int cgit_have_repository(void);
-
extern int chk_zero(int result, char *msg);
extern int chk_positive(int result, char *msg);
extern int chk_non_negative(int result, char *msg);
diff --git a/shared.c b/shared.c
index e79c3da..a39394d 100644
--- a/shared.c
+++ b/shared.c
@@ -13,18 +13,6 @@
struct cgit_repolist cgit_repolist;
struct cgit_context ctx;
-/* Returns true when the git repository belonging to this request was opened
- * successfully. Some requests print a page for a repository which could not
- * be opened, e.g. because repo.path is wrong, and the object database and
- * ref stores must not be touched in that case: they would abort with
- * "reference backend is unknown" or dereference the not yet known hash
- * algorithm.
- */
-int cgit_have_repository(void)
-{
- return startup_info->have_repository;
-}
-
int chk_zero(int result, char *msg)
{
if (result != 0)
diff --git a/ui-shared.c b/ui-shared.c
index a6a828d..9f7625c 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -1042,7 +1042,7 @@ static void print_header(void)
cgit_index_link("index", NULL, NULL, NULL, NULL, 0, 1);
html(" : ");
cgit_summary_link(ctx.repo->name, NULL, NULL, NULL);
- if (ctx.env.authenticated && cgit_have_repository()) {
+ if (ctx.env.authenticated) {
html("</td><td class='form'>");
html("<form method='get'>\n");
cgit_add_hidden_formfields(0, 1, ctx.qry.page);