src/mime.c
changeset 2613 1a84490f3f3f
parent 2598 eaf109aa1e6c
child 2697 3c14ccda2bd7
     1.1 --- a/src/mime.c	Wed Apr 18 09:44:21 2018 +0200
     1.2 +++ b/src/mime.c	Thu Apr 19 08:53:18 2018 +0200
     1.3 @@ -97,21 +97,6 @@
     1.4      return status;
     1.5  }
     1.6  
     1.7 -static bool known_ascii_type(const char* mime_type) {
     1.8 -    const char* text_types[] = {"application/pgp-keys",
     1.9 -                                "application/pgp-encrypted"};
    1.10 -    const int TEXT_TYPE_ARRAY_SIZE = sizeof(text_types)/sizeof(text_types[0]);
    1.11 -    
    1.12 -    int i;
    1.13 -    
    1.14 -    for (i = 0; i < TEXT_TYPE_ARRAY_SIZE; i++) {
    1.15 -        if (strcmp(text_types[i], mime_type) == 0)
    1.16 -            return true;
    1.17 -    }
    1.18 -    return false;
    1.19 -}
    1.20 -
    1.21 -
    1.22  static PEP_STATUS mime_attachment(
    1.23          bloblist_t *blob,
    1.24          struct mailmime **result,
    1.25 @@ -136,7 +121,6 @@
    1.26          mime_type = blob->mime_type;
    1.27  
    1.28      pEp_rid_list_t* resource = parse_uri(blob->filename);
    1.29 -//    bool already_ascii = known_ascii_type(mime_type);
    1.30  
    1.31      bool already_ascii = !(must_chunk_be_encoded(blob->value, blob->size, true));
    1.32