From 93fb9951aade603e49c357e0fc9db933cc4dea20 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Sat, 20 Jul 2024 17:32:53 +0200 Subject: [PATCH] gunixmounts: Drop some Interix and QNX support This can never have been tested, it was returning `GUnixMountEntry` structs from functions which are typed to return `GUnixMountPoint`s. Signed-off-by: Philip Withnall --- gio/gunixmounts.c | 41 ----------------------------------------- 1 file changed, 41 deletions(-) diff --git a/gio/gunixmounts.c b/gio/gunixmounts.c index 8e410c90c..96733d9cc 100644 --- a/gio/gunixmounts.c +++ b/gio/gunixmounts.c @@ -1752,47 +1752,6 @@ _g_unix_mount_points_get_from_file (const char *table_path, *n_points_out = 0; return NULL; } -/* Interix {{{2 */ -#elif defined(__INTERIX) -static GList * -_g_get_unix_mount_points (void) -{ - return _g_get_unix_mounts (); -} - -static GUnixMountPoint ** -_g_unix_mount_points_get_from_file (const char *table_path, - uint64_t *time_read_out, - size_t *n_points_out) -{ - /* Not supported on Interix systems. */ - if (time_read_out != NULL) - *time_read_out = 0; - if (n_points_out != NULL) - *n_points_out = 0; - return NULL; -} - -/* QNX {{{2 */ -#elif defined (HAVE_QNX) -static GList * -_g_get_unix_mount_points (void) -{ - return _g_get_unix_mounts (); -} - -static GUnixMountPoint ** -_g_unix_mount_points_get_from_file (const char *table_path, - uint64_t *time_read_out, - size_t *n_points_out) -{ - /* Not supported on QNX systems. */ - if (time_read_out != NULL) - *time_read_out = 0; - if (n_points_out != NULL) - *n_points_out = 0; - return NULL; -} /* Common code {{{2 */ #else