Removed findDisplayEntity. The mime class has one like it already.
authorindiri69 <indiri69@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 24 Aug 2002 19:39:02 +0000 (19:39 +0000)
committerindiri69 <indiri69@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 24 Aug 2002 19:39:02 +0000 (19:39 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3448 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/mime.php

index 896933fede17db0bb1d943d42568a37498d8670d..0ae940ed8bac8aa748437bdb8d92b26851a5d049 100644 (file)
@@ -198,24 +198,6 @@ function mime_print_body_lines ($imap_stream, $id, $ent_id, $encoding) {
 
 /* -[ END MIME DECODING ]----------------------------------------------------------- */
 
-/* findDisplayEntity
- * Checks to see if $message contains content of type $type0/$type1
- * returns the first entity number it finds of that type, or NULL if
- * none is found.  Takes optional argument $start to allow the caller
- * to continue where they left off
- */
-function findDisplayEntity($message, $type0, $type1, $start=0) {
-    if ($message) {
-        for ($i = $start;isset($message->entities[$i]); $i++) {
-            $entity = $message->entities[$i];
-            if ($entity->type0 == $type0 && $entity->type1 == $type1) {
-                return $i;
-            }
-        }
-    }
-    return NULL;
-}
-
 // This is here for debugging purposese.  It will print out a list
 // of all the entity IDs that are in the $message object.