Whamcloud - gitweb
debugfs: add ncheck -c option
[tools/e2fsprogs.git] / debugfs / debugfs.c
index b7ff00d..04d5139 100644 (file)
@@ -1287,35 +1287,6 @@ void do_print_working_directory(int argc, char *argv[])
 }
 
 #ifndef READ_ONLY
-/*
- * Given a mode, return the ext2 file type
- */
-static int ext2_file_type(unsigned int mode)
-{
-       if (LINUX_S_ISREG(mode))
-               return EXT2_FT_REG_FILE;
-
-       if (LINUX_S_ISDIR(mode))
-               return EXT2_FT_DIR;
-
-       if (LINUX_S_ISCHR(mode))
-               return EXT2_FT_CHRDEV;
-
-       if (LINUX_S_ISBLK(mode))
-               return EXT2_FT_BLKDEV;
-
-       if (LINUX_S_ISLNK(mode))
-               return EXT2_FT_SYMLINK;
-
-       if (LINUX_S_ISFIFO(mode))
-               return EXT2_FT_FIFO;
-
-       if (LINUX_S_ISSOCK(mode))
-               return EXT2_FT_SOCK;
-
-       return 0;
-}
-
 static void make_link(char *sourcename, char *destname)
 {
        ext2_ino_t      ino;