diff options
author | Michael Zucci <zucchi@src.gnome.org> | 2000-05-03 04:31:47 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2000-05-03 04:31:47 +0800 |
commit | cf99b8eec231365fedce7d7930ded14334da3741 (patch) | |
tree | 1a5998fb137c074491f41022ac6d7a3764efc416 | |
parent | 633171afd76f29e23b51628c752ad4c6d05bf4ea (diff) | |
download | gsoc2013-evolution-cf99b8eec231365fedce7d7930ded14334da3741.tar gsoc2013-evolution-cf99b8eec231365fedce7d7930ded14334da3741.tar.gz gsoc2013-evolution-cf99b8eec231365fedce7d7930ded14334da3741.tar.bz2 gsoc2013-evolution-cf99b8eec231365fedce7d7930ded14334da3741.tar.lz gsoc2013-evolution-cf99b8eec231365fedce7d7930ded14334da3741.tar.xz gsoc2013-evolution-cf99b8eec231365fedce7d7930ded14334da3741.tar.zst gsoc2013-evolution-cf99b8eec231365fedce7d7930ded14334da3741.zip |
Removed bizarre string_dichotomy version of this. This code is somewhat
* gmime-utils.c (_store_header_pair_from_string): Removed bizarre
string_dichotomy version of this. This code is somewhat redundant
now, and is headed for death anyway.
svn path=/trunk/; revision=2752
-rw-r--r-- | camel/gmime-utils.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/camel/gmime-utils.c b/camel/gmime-utils.c index 170fb667bb..19292d8918 100644 --- a/camel/gmime-utils.c +++ b/camel/gmime-utils.c @@ -106,10 +106,6 @@ gmime_write_header_with_glist_to_stream (CamelStream *stream, static void _store_header_pair_from_string (GArray *header_array, gchar *header_line) { -#if 0 - gchar dich_result; - gchar *header_name, *header_value; -#endif Rfc822Header header; g_assert (header_array); @@ -117,7 +113,6 @@ _store_header_pair_from_string (GArray *header_array, gchar *header_line) if (header_line) { -#if 1 char *p = strchr(header_line, ':'); if (p) { header.name = g_strndup(header_line, p-header_line); @@ -126,31 +121,6 @@ _store_header_pair_from_string (GArray *header_array, gchar *header_line) STRING_TRIM_STRIP_LEADING | STRING_TRIM_STRIP_TRAILING); g_array_append_val (header_array, header); } -#else - dich_result = string_dichotomy ( header_line, ':', - &header_name, &header_value, - STRING_DICHOTOMY_NONE); - if (dich_result != 'o') { - g_warning ("** WARNING **\n" - "store_header_pair_from_string : " - "dichotomy result is '%c'\n" - "header line is :\n--\n%s\n--\n" - "** \n", dich_result, header_line); - if (header_name) - g_free (header_name); - if (header_value) - g_free (header_value); - - } else { - string_trim (header_value, " \t", - STRING_TRIM_STRIP_LEADING | STRING_TRIM_STRIP_TRAILING); - - header.name = header_name; - header.value = header_value; - g_array_append_val (header_array, header); - printf("adding header '%s' : '%s'\n", header_name, header_value); - } -#endif } } |