mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 07:26:15 +01:00
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 <pwithnall@gnome.org>
This commit is contained in:
parent
04ee011171
commit
93fb9951aa
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user