Commit 8be226148f22559cb859a1c035243a7379465665

Edward Thomson 2021-11-11T12:47:02

examples: remove unused function

diff --git a/examples/add.c b/examples/add.c
index 542360e..5014bd7 100644
--- a/examples/add.c
+++ b/examples/add.c
@@ -110,21 +110,6 @@ int print_matched_cb(const char *path, const char *matched_pathspec, void *paylo
 	return ret;
 }
 
-void init_array(git_strarray *array, int argc, char **argv)
-{
-	unsigned int i;
-
-	array->count = argc;
-	array->strings = calloc(array->count, sizeof(char *));
-	assert(array->strings != NULL);
-
-	for (i = 0; i < array->count; i++) {
-		array->strings[i] = argv[i];
-	}
-
-	return;
-}
-
 void print_usage(void)
 {
 	fprintf(stderr, "usage: add [options] [--] file-spec [file-spec] [...]\n\n");