summaryrefslogtreecommitdiff
path: root/refs.c
diff options
context:
space:
mode:
Diffstat (limited to 'refs.c')
-rw-r--r--refs.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/refs.c b/refs.c
index 5121c57b78..07959ff3e6 100644
--- a/refs.c
+++ b/refs.c
@@ -1481,17 +1481,6 @@ void base_ref_store_init(struct ref_store *refs,
const char *submodule)
{
refs->be = be;
-
- if (!submodule)
- refs->submodule = "";
- else
- refs->submodule = xstrdup(submodule);
-}
-
-void assert_main_repository(struct ref_store *refs, const char *caller)
-{
- if (*refs->submodule)
- die("BUG: %s called for a submodule", caller);
}
/* backend functions */