From 40d9701ea0d2a92bc13bb7480df4cab14c50e0d9 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 26 Oct 2017 13:38:30 -0600 Subject: [PATCH] nshlib: Remove a dangling function that is no longer used after last mount/df chagnes --- nshlib/nsh_mntcmds.c | 107 ------------------------------------------- 1 file changed, 107 deletions(-) diff --git a/nshlib/nsh_mntcmds.c b/nshlib/nsh_mntcmds.c index f51bf1e4a..0b9e3cb93 100644 --- a/nshlib/nsh_mntcmds.c +++ b/nshlib/nsh_mntcmds.c @@ -58,113 +58,6 @@ #include "nsh.h" #include "nsh_console.h" -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -/**************************************************************************** - * Private Types - ****************************************************************************/ - -/**************************************************************************** - * Private Function Prototypes - ****************************************************************************/ - -/**************************************************************************** - * Private Data - ****************************************************************************/ - -/**************************************************************************** - * Public Data - ****************************************************************************/ - -/**************************************************************************** - * Private Functions - ****************************************************************************/ - -/**************************************************************************** - * Name: get_fstype - ****************************************************************************/ - -#if CONFIG_NFILE_DESCRIPTORS > 0 && !defined(CONFIG_DISABLE_MOUNTPOINT) && \ - defined(CONFIG_FS_READABLE) && !defined(CONFIG_NSH_DISABLE_MOUNT) -static const char* get_fstype(FAR struct statfs *statbuf) -{ - FAR const char *fstype; - - /* Get the file system type */ - - switch (statbuf->f_type) - { -#ifdef CONFIG_FS_FAT - case MSDOS_SUPER_MAGIC: - fstype = "vfat"; - break; -#endif - -#ifdef CONFIG_FS_ROMFS - case ROMFS_MAGIC: - fstype = "romfs"; - break; -#endif - -#ifdef CONFIG_FS_TMPFS - case TMPFS_MAGIC: - fstype = "tmpfs"; - break; -#endif - -#ifdef CONFIG_FS_BINFS - case BINFS_MAGIC: - fstype = "binfs"; - break; -#endif - -#ifdef CONFIG_FS_NXFFS - case NXFFS_MAGIC: - fstype = "nxffs"; - break; -#endif - -#ifdef CONFIG_NFS - case NFS_SUPER_MAGIC: - fstype = "nfs"; - break; -#endif - -#ifdef CONFIG_FS_SMARTFS - case SMARTFS_MAGIC: - fstype = "smartfs"; - break; -#endif - -#ifdef CONFIG_FS_PROCFS - case PROCFS_MAGIC: - fstype = "procfs"; - break; -#endif - -#ifdef CONFIG_FS_UNIONFS - case UNIONFS_MAGIC: - fstype = "unionfs"; - break; -#endif - -#ifdef CONFIG_FS_HOSTFS - case HOSTFS_MAGIC: - fstype = "hostfs"; - break; -#endif - - default: - fstype = "Unrecognized"; - break; - } - - return fstype; -} -#endif - /**************************************************************************** * Public Functions ****************************************************************************/