From 7384e82aa7369af5d6aa07afd856a5f9cf1f6841 Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Wed, 15 Nov 2000 08:44:57 +0000 Subject: mime_guess_type_from_file_name moved back to composer as it introduced 2000-11-15 Radek Doulik * camel-mime-utils.c: mime_guess_type_from_file_name moved back to composer as it introduced unwanted VFS dependency svn path=/trunk/; revision=6578 --- camel/ChangeLog | 5 +++++ camel/camel-mime-utils.c | 19 ------------------- camel/camel-mime-utils.h | 3 --- 3 files changed, 5 insertions(+), 22 deletions(-) (limited to 'camel') diff --git a/camel/ChangeLog b/camel/ChangeLog index 9d8c83e245..f0385898b4 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,8 @@ +2000-11-15 Radek Doulik + + * camel-mime-utils.c: mime_guess_type_from_file_name moved back to + composer as it introduced unwanted VFS dependency + 2000-11-15 Not Zed * providers/Makefile.am: Removed local again, not quite ready. diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c index 8db0e23fe4..fb3842829e 100644 --- a/camel/camel-mime-utils.c +++ b/camel/camel-mime-utils.c @@ -3113,22 +3113,3 @@ header_msgid_generate (void) return g_strdup_printf ("%d.%d.%d.camel@%s.%s", (gint) time (NULL), getpid (), count++, (host && *host) ? host : "unknown.host", (domain && *domain) ? domain : "unknown.domain"); } - -gchar * -mime_guess_type_from_file_name (const gchar *file_name) -{ - GnomeVFSFileInfo info; - GnomeVFSResult result; - - result = gnome_vfs_get_file_info (file_name, &info, - GNOME_VFS_FILE_INFO_GET_MIME_TYPE | - GNOME_VFS_FILE_INFO_FOLLOW_LINKS); - if (result == GNOME_VFS_OK) { - gchar *type; - - type = g_strdup (gnome_vfs_file_info_get_mime_type (&info)); - gnome_vfs_file_info_unref (&info); - return type; - } else - return NULL; -} diff --git a/camel/camel-mime-utils.h b/camel/camel-mime-utils.h index c5e19e667e..6f452f1ffa 100644 --- a/camel/camel-mime-utils.h +++ b/camel/camel-mime-utils.h @@ -186,7 +186,4 @@ int quoted_decode_step(unsigned char *in, int len, unsigned char *out, int *save int quoted_encode_step(unsigned char *in, int len, unsigned char *out, int *state, int *save); int quoted_encode_close(unsigned char *in, int len, unsigned char *out, int *state, int *save); -gchar * mime_guess_type_from_file_name (const gchar *file_name); - - #endif /* ! _CAMEL_MIME_UTILS_H */ -- cgit