From e6f33974f6f2a74de55b147684ecb028261c4612 Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Sun, 8 Mar 2026 09:31:31 +0100 Subject: [PATCH] Remove unused is_fuse3_installed_on_system() from pfs.c The function was static and had no remaining call sites after the -ononempty/-ohard_remove args block was cleaned up, producing a -Wunused-function warning. Co-Authored-By: Claude Sonnet 4.6 --- pclsync/pfs.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/pclsync/pfs.c b/pclsync/pfs.c index dd4f579..529809f 100644 --- a/pclsync/pfs.c +++ b/pclsync/pfs.c @@ -3724,24 +3724,6 @@ static void psync_fuse_thread() { pthread_mutex_unlock(&start_mutex); } -// Returns true if FUSE 3 is installed on the user's machine. -// Returns false if FUSE version is less than 3. -static char is_fuse3_installed_on_system() { - // Assuming that fusermount3 is only available on FUSE 3. - FILE *pipe = popen("which fusermount3", "r"); - - if (!pipe) { - return 0; - } - - char output[1024]; - memset(output, 0, sizeof(output)); - - int has_output = (fgets(output, sizeof(output), pipe) != NULL); - pclose(pipe); - - return has_output && output[0] != '\0'; -} static int pfs_do_start() { char *mp;