diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-09-29 09:36:34 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-09-29 11:10:28 +0100 |
commit | 1f1b1609029f4358f6b2dc3004ab256dbc3f49af (patch) | |
tree | ad387ac32e17332bc7e1b8bd27ea440b96bc6371 /tools | |
parent | 259fb99d340b17de056faeab5870b7927426864e (diff) |
coverity#1325051 Logically dead code
since
commit 984780243c9a1ab1242f3af719c6dca3ddacf67a
Author: Stephan Bergmann <sbergman@redhat.com>
Date: Thu Sep 17 19:15:26 2015 +0200
HEADER_FIELD_TEXT is the only used HeaderFieldType
Change-Id: Ia4e5554e1aaed9e821bdea18b9b3acff001dd6e7
Change-Id: I94a1cba6e9813b7192a03ea59948bb40438c341b
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/inet/inetmime.cxx | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/tools/source/inet/inetmime.cxx b/tools/source/inet/inetmime.cxx index e8a50538a107..16c7d2a77dc2 100644 --- a/tools/source/inet/inetmime.cxx +++ b/tools/source/inet/inetmime.cxx @@ -2426,7 +2426,6 @@ OUString INetMIME::decodeHeaderFieldBody(const OString& rBody) /* bool bStartEncodedWord = true; */ const sal_Char * pWSPBegin = pBegin; - bool bQuotedEncodedText = false; sal_uInt32 nCommentLevel = 0; for (const sal_Char * p = pBegin; p != pEnd;) @@ -2689,30 +2688,7 @@ OUString INetMIME::decodeHeaderFieldBody(const OString& rBody) } if (!sEncodedText.isEmpty()) - { - if (bQuotedEncodedText) - { - sDecoded += "\""; - const sal_Unicode * pTextPtr = sEncodedText.getStr(); - const sal_Unicode * pTextEnd = pTextPtr + sEncodedText.getLength(); - for (;pTextPtr != pTextEnd; ++pTextPtr) - { - switch (*pTextPtr) - { - case '"': - case '\\': - case '\x0D': - sDecoded += "\\"; - break; - } - sDecoded += OUString(*pTextPtr); - } - sDecoded += "\""; - } - else - sDecoded += sEncodedText; - bQuotedEncodedText = false; - } + sDecoded += sEncodedText; if (p == pEnd) break; |