Skip to content

Commit 8be2261

Browse files
committed
examples: remove unused function
1 parent 2374ba8 commit 8be2261

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

examples/add.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -110,21 +110,6 @@ int print_matched_cb(const char *path, const char *matched_pathspec, void *paylo
110110
return ret;
111111
}
112112

113-
void init_array(git_strarray *array, int argc, char **argv)
114-
{
115-
unsigned int i;
116-
117-
array->count = argc;
118-
array->strings = calloc(array->count, sizeof(char *));
119-
assert(array->strings != NULL);
120-
121-
for (i = 0; i < array->count; i++) {
122-
array->strings[i] = argv[i];
123-
}
124-
125-
return;
126-
}
127-
128113
void print_usage(void)
129114
{
130115
fprintf(stderr, "usage: add [options] [--] file-spec [file-spec] [...]\n\n");

0 commit comments

Comments
 (0)