netstar pushed a commit to branch master. http://git.enlightenment.org/apps/evisum.git/commit/?id=b089df3d5998bc102a56a522717b26de9092cbcc
commit b089df3d5998bc102a56a522717b26de9092cbcc Author: Alastair Poole <[email protected]> Date: Wed Dec 2 14:36:06 2020 +0000 disks: this was also horrible horrible. Delete, delete, delete. --- src/bin/system/filesystems.c | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/src/bin/system/filesystems.c b/src/bin/system/filesystems.c index e350e6d..0630247 100644 --- a/src/bin/system/filesystems.c +++ b/src/bin/system/filesystems.c @@ -28,41 +28,6 @@ # include <sys/mount.h> #endif -#if defined(__linux__) -static char * -file_system_type_name(const char *mountpoint) -{ - FILE *f; - char *mount, *res, *type, *end; - char buf[4096]; - - res = NULL; - - f = fopen("/proc/mounts", "r"); - if (!f) return NULL; - - while ((fgets(buf, sizeof(buf), f)) != NULL) - { - mount = strchr(buf, ' ') + 1; - if (!mount) continue; - type = strchr(mount, ' '); - if (!type) continue; - end = type; - *end = '\0'; - if (strcmp(mount, mountpoint)) - continue; - type++; - end = strchr(type, ' '); - if (!end) continue; - res = strndup(type, end - type); - break; - } - fclose(f); - return res; -} - -#endif - Eina_List * file_system_info_all_get(void) { --
