Bug 1390051 - Port bug 1387803 to mailnews: remove use of [deprecated]. rs=bustage-fix
authorJorg K <jorgk@jorgk.com>
Mon, 14 Aug 2017 10:19:29 +0200
changeset 28723 baa8d52a254c56cc6efeadf9f6473335f8d075d2
parent 28722 664ad01b0898a313e928fab078cbb0efd09e2b4c
child 28724 0710b9ff48cd9419fbf3b7275f84a48c94f71860
push id2027
push userclokep@gmail.com
push dateFri, 22 Sep 2017 15:34:57 +0000
treeherdercomm-beta@cffa2d0e5946 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage-fix
bugs1390051, 1387803
Bug 1390051 - Port bug 1387803 to mailnews: remove use of [deprecated]. rs=bustage-fix
mailnews/base/public/nsIMsgDBView.idl
mailnews/base/public/nsIMsgFolder.idl
mailnews/mime/public/nsIMsgHeaderParser.idl
--- a/mailnews/base/public/nsIMsgDBView.idl
+++ b/mailnews/base/public/nsIMsgDBView.idl
@@ -313,17 +313,17 @@ interface nsIMsgDBView : nsISupports
    *
    * @return an array containing the selected message headers.  You are free to
    *     mutate the array; it will not affect the underlying selection.
    */
   void getSelectedMsgHdrs([optional] out unsigned long count,
                           [retval, array, size_is(count)]
                           out nsIMsgDBHdr headers);
 
-  [deprecated] nsIMutableArray getMsgHdrsForSelection();
+  /* @deprecated */ nsIMutableArray getMsgHdrsForSelection();
 
   void getURIsForSelection(out unsigned long count, [retval, array, size_is(count)] out string uris);
   void getIndicesForSelection(out unsigned long count, [retval, array, size_is(count)] out nsMsgViewIndex indices);
 
   readonly attribute ACString URIForFirstSelectedMessage;
   readonly attribute nsIMsgDBHdr hdrForFirstSelectedMessage;
   void loadMessageByMsgKey(in nsMsgKey aMsgKey);
   void loadMessageByViewIndex(in nsMsgViewIndex aIndex);
--- a/mailnews/base/public/nsIMsgFolder.idl
+++ b/mailnews/base/public/nsIMsgFolder.idl
@@ -37,18 +37,17 @@ interface nsIMsgFolder : nsISupports {
   const nsMsgBiffState nsMsgBiffState_NoMail =  1; // No new mail is waiting.
   const nsMsgBiffState nsMsgBiffState_Unknown = 2; // We dunno whether there is new mail.
 
   /* folder name properties */
   readonly attribute ACString URI;
   attribute AString name;
   attribute AString prettyName;
   readonly attribute AString abbreviatedName;
-  // [deprecated]
-  readonly attribute AString prettiestName;
+  /* @deprecated */ readonly attribute AString prettiestName;
 
   attribute nsIMsgFolder parent;
 
   /// Returns an enumerator containing the messages within the current database.
   readonly attribute nsISimpleEnumerator messages;
 
   void startFolderLoading();
   void endFolderLoading();
--- a/mailnews/mime/public/nsIMsgHeaderParser.idl
+++ b/mailnews/mime/public/nsIMsgHeaderParser.idl
@@ -181,55 +181,55 @@ interface nsIMsgHeaderParser : nsISuppor
    *
    * Note that the input string is RFC 2231 and RFC 2047 decoded but no UTF-8
    * decoding takes place.
    */
   void makeFromDisplayAddress(in AString aDisplayAddresses,
                               [optional] out unsigned long count,
                               [retval, array, size_is(count)] out msgIAddressObject addresses);
 
-  [deprecated] void parseHeadersWithArray(in wstring aLine,
+  /* @deprecated */ void parseHeadersWithArray(in wstring aLine,
                              [array, size_is(count)] out wstring aEmailAddresses,
                              [array, size_is(count)] out wstring aNames,
                              [array, size_is(count)] out wstring aFullNames,
                              [retval] out unsigned long count);
 
 
   /**
    * Given a string which contains a list of Header addresses, returns a
    * comma-separated list of just the `mailbox' portions.
    *
    * @param aLine          The header line to parse.
    * @return               A comma-separated list of just the mailbox parts
    *                       of the email-addresses.
    */
-  [deprecated] ACString extractHeaderAddressMailboxes(in ACString aLine);
+  /* @deprecated */ ACString extractHeaderAddressMailboxes(in ACString aLine);
 
   /**
    * Given a string which contains a list of Header addresses, returns a
    * comma-separated list of just the `user name' portions.  If any of
    * the addresses doesn't have a name, then the mailbox is used instead.
    *
    * @param aLine          The header line to parse.
    * @return               A comma-separated list of just the name parts
    *                       of the addresses.
    */
-  [deprecated] AUTF8String extractHeaderAddressNames(in AUTF8String aLine);
+  /* @deprecated */ AUTF8String extractHeaderAddressNames(in AUTF8String aLine);
 
   /*
    * Like extractHeaderAddressNames, but only returns the first name in the
    * header if there is one. This function will return unquoted strings suitable
    * for display.
    *
    * @param aLine          The header line to parse.
    * @return               The first name found in the list.
    */
-  [deprecated] AUTF8String extractHeaderAddressName(in AUTF8String aLine);
+  /* @deprecated */ AUTF8String extractHeaderAddressName(in AUTF8String aLine);
 
   /**
    * Given a name and email address, produce a string that is suitable for
    * emitting in a MIME header (after applying RFC 2047 encoding).
    *
    * @note This is a temporary method.
    */
-  [deprecated] AString makeMimeAddress(in AString aName, in AString aEmail);
+  /* @deprecated */ AString makeMimeAddress(in AString aName, in AString aEmail);
 };