From 3a37aad25f6a7b1f081c3e6767bb82c08fc9fed6 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Tue, 23 Jan 2024 16:35:43 +0100 Subject: [PATCH] Remove unused NameWithDelimitrom() --- .../v/0.0.0/app/libraries/MailSo/Mime/Header.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/snappymail/v/0.0.0/app/libraries/MailSo/Mime/Header.php b/snappymail/v/0.0.0/app/libraries/MailSo/Mime/Header.php index 200d387cf..20c0e3941 100644 --- a/snappymail/v/0.0.0/app/libraries/MailSo/Mime/Header.php +++ b/snappymail/v/0.0.0/app/libraries/MailSo/Mime/Header.php @@ -86,11 +86,6 @@ class Header implements \JsonSerializable return $this->sName; } - public function NameWithDelimitrom() : string - { - return $this->sName . ': '; - } - public function Value() : string { return $this->sValue; @@ -160,7 +155,8 @@ class Header implements \JsonSerializable } // https://www.rfc-editor.org/rfc/rfc2822#section-2.1.1, avoid folding immediately after the header name - return $this->NameWithDelimitrom() . \wordwrap($sResult, 78 - \strlen($this->NameWithDelimitrom()) - 1, "\r\n "); + $sName = $this->sName . ': '; + return $sName . \wordwrap($sResult, 78 - \strlen($sName) - 1, "\r\n "); } private function IsSubject() : bool @@ -207,7 +203,7 @@ class Header implements \JsonSerializable $aResult = array( '@Object' => 'Object/MimeHeader', 'name' => $this->sName, - 'value' => $this->sValue + 'value' => $this->sValue // $this->EncodedValue() ); if ($this->oParameters->count()) { $aResult['parameters'] = $this->oParameters;