Don't compile some unused functions in gio/xdgmime/

This commit is contained in:
Matthias Clasen
2010-08-08 20:49:59 -04:00
committed by Emmanuel Fleury
parent a1bfe899ab
commit 14e46ca288
12 changed files with 68 additions and 6 deletions

View File

@@ -738,6 +738,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)
@@ -824,6 +826,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[],
@@ -1052,6 +1056,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,
@@ -1099,4 +1105,4 @@ _xdg_mime_cache_glob_dump (void)
}
}
#endif