]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/EmlContentFoo.pm
update copyrights for 2021
[public-inbox.git] / lib / PublicInbox / EmlContentFoo.pm
index e6005d290c933b1575bdc795123b6c1ae67ccc79..80fc7364fc9a1943759585c30487ab0c5d36ca0c 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2020 all contributors <meta@public-inbox.org>
+# Copyright (C) 2020-2021 all contributors <meta@public-inbox.org>
 # Copyright (C) 2004- Simon Cozens, Casey West, Ricardo SIGNES
 # This library is free software; you can redistribute it and/or modify
 # it under the same terms as Perl itself.
@@ -102,11 +102,6 @@ sub parse_content_type {
                type       => $type,
                subtype => $subtype,
                attributes => $attributes,
-
-               # This is dumb.  Really really dumb.  For backcompat. -- rjbs,
-               # 2013-08-10
-               discrete   => $type,
-               composite  => $subtype,
        };
 }
 
@@ -301,11 +296,6 @@ This routine parses email content type headers according to section 5.1 of RFC
 a hash as above, with entries for the C<type>, the C<subtype>, and a hash of
 C<attributes>.
 
-For backward compatibility with a really unfortunate misunderstanding of RFC
-2045 by the early implementors of this module, C<discrete> and C<composite> are
-also present in the returned hashref, with the values of C<type> and C<subtype>
-respectively.
-
 =func parse_content_disposition
 
 This routine is exported by default.