btrfs-progs: mkfs: remove unused function

Signed-off-by: David Sterba <dsterba@suse.com>
master
David Sterba 2017-09-29 15:24:54 +02:00
parent d07e349800
commit 530ca51307
1 changed files with 0 additions and 14 deletions

View File

@ -795,20 +795,6 @@ end:
return ret;
}
static char *make_path(const char *dir, const char *name)
{
char *path;
path = malloc(strlen(dir) + strlen(name) + 2);
if (!path)
return NULL;
strcpy(path, dir);
if (dir[strlen(dir) - 1] != '/')
strcat(path, "/");
strcat(path, name);
return path;
}
static int traverse_directory(struct btrfs_trans_handle *trans,
struct btrfs_root *root, const char *dir_name,
struct directory_name_entry *dir_head)