diff --git a/src/Parser.php b/src/Parser.php index 4471539277..f46378826a 100644 --- a/src/Parser.php +++ b/src/Parser.php @@ -644,23 +644,6 @@ public function getAttachments($attachment_types = self::GA_INCLUDE_ALL) return $attachments; } - public function getAttachments2() - { - $attachments = []; - - $parts = $this->filterParts(['attachment'], false); - - foreach ($parts as $partId => $part) { - $attachments[] = $this->attachmentInterface::create( - $this->getAttachmentStream($part), - $this->getPartComplete($part), - new MimePart($partId, $part) - ); - } - - return $attachments; - } - /** * Save attachments in a folder *