mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-06 16:08:43 +02:00
Don't compile some unused functions in gio/xdgmime/
This commit is contained in:
@@ -740,6 +740,8 @@ _xdg_mime_cache_get_mime_type_for_data (const void *data,
|
||||
return cache_get_mime_type_for_data (data, len, result_prio, NULL, 0);
|
||||
}
|
||||
|
||||
#ifdef NOT_USED_IN_GIO
|
||||
|
||||
const char *
|
||||
_xdg_mime_cache_get_mime_type_for_file (const char *file_name,
|
||||
struct stat *statbuf)
|
||||
@@ -820,6 +822,8 @@ _xdg_mime_cache_get_mime_type_from_file_name (const char *file_name)
|
||||
return XDG_MIME_TYPE_UNKNOWN;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
int
|
||||
_xdg_mime_cache_get_mime_types_from_file_name (const char *file_name,
|
||||
const char *mime_types[],
|
||||
@@ -1036,6 +1040,8 @@ _xdg_mime_cache_get_icon (const char *mime)
|
||||
return cache_lookup_icon (mime, 32);
|
||||
}
|
||||
|
||||
#ifdef NOT_USED_IN_GIO
|
||||
|
||||
static void
|
||||
dump_glob_node (XdgMimeCache *cache,
|
||||
xdg_uint32_t offset,
|
||||
@@ -1082,4 +1088,4 @@ _xdg_mime_cache_glob_dump (void)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user