Bug 777205 - Remove unused wrap length value in nsMsgAttachmentHandler::UrlExit. r=mbanner
authorHiroyuki Ikezoe <hiikezoe@mozilla-japan.org>
Sat, 04 Aug 2012 10:10:09 -0400
changeset 13197 2368e7da5f4bd7e2844f896c9afbbe9556f4ab38
parent 13196 c8502e65ecb5855eca2ea943bebc81f93c045a9c
child 13198 25e716ecbc45fc3b28b69275c5cdbdb2cc85653b
push idunknown
push userunknown
push dateunknown
reviewersmbanner
bugs777205
Bug 777205 - Remove unused wrap length value in nsMsgAttachmentHandler::UrlExit. r=mbanner
mailnews/compose/src/nsMsgAttachmentHandler.cpp
--- a/mailnews/compose/src/nsMsgAttachmentHandler.cpp
+++ b/mailnews/compose/src/nsMsgAttachmentHandler.cpp
@@ -1091,30 +1091,16 @@ nsMsgAttachmentHandler::UrlExit(nsresult
   // a need to do conversion to plain text...if so, the magic happens here,
   // otherwise, just move on to other attachments...
   //
   if (NS_SUCCEEDED(status) && !m_type.LowerCaseEqualsLiteral(TEXT_PLAIN) &&
       m_desiredType.LowerCaseEqualsLiteral(TEXT_PLAIN))
   {
     //
     // Conversion to plain text desired.
-    //
-    PRInt32       width = 72;
-    nsCOMPtr<nsIPrefBranch> pPrefBranch(do_GetService(NS_PREFSERVICE_CONTRACTID));
-    if (pPrefBranch)
-      pPrefBranch->GetIntPref("mailnews.wraplength", &width);
-    // Let sanity reign!
-    if (width == 0)
-      width = 72;
-    else if (width < 10)
-      width = 10;
-    else if (width > 30000)
-      width = 30000;
-
-    //
     // Now use the converter service here to do the right
     // thing and convert this data to plain text for us!
     //
     nsAutoString      conData;
 
     if (NS_SUCCEEDED(LoadDataFromFile(mTmpFile, conData, true)))
     {
       if (NS_SUCCEEDED(ConvertBufToPlainText(conData, UseFormatFlowed(m_charset.get()), true)))