Remove unused function
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 8 Apr 2015 05:49:59 +0000 (07:49 +0200)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 8 Apr 2015 05:51:39 +0000 (07:51 +0200)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
make_ext4fs.c

index edfa25cd623586b1f313e5b311cdbfd98aad2bed..cb181617797db10f8c2a575dc500e5f86bfdb678 100644 (file)
@@ -44,27 +44,6 @@ static int filter_dot(const struct dirent *d)
        return (strcmp(d->d_name, "..") && strcmp(d->d_name, "."));
 }
 
-static u32 build_default_directory_structure(const char *dir_path)
-{
-       u32 inode;
-       u32 root_inode;
-       struct dentry dentries = {
-                       .filename = "lost+found",
-                       .file_type = EXT4_FT_DIR,
-                       .mode = S_IRWXU,
-                       .uid = 0,
-                       .gid = 0,
-                       .mtime = 0,
-       };
-       root_inode = make_directory(0, 1, &dentries, 1);
-       inode = make_directory(root_inode, 0, NULL, 0);
-       *dentries.inode = inode;
-       inode_set_permissions(inode, dentries.mode,
-               dentries.uid, dentries.gid, dentries.mtime);
-
-       return root_inode;
-}
-
 /* Read a local directory and create the same tree in the generated filesystem.
    Calls itself recursively with each directory in the given directory.
    full_path is an absolute or relative path, with a trailing slash, to the