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

This commit is contained in:
Matthias Clasen
2010-08-08 20:49:59 -04:00
parent 7acdaf6f1d
commit 14e0ad7c53
15 changed files with 75 additions and 9 deletions

View File

@@ -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