Bug 1257128 (part 2) - Remove nsIAtomService.get{,Permanent}AtomUTF8. r=froydnj.
authorNicholas Nethercote <nnethercote@mozilla.com>
Wed, 16 Mar 2016 21:09:18 +1100
changeset 290242 1eee02156b68f5171ef8d087ed5bb614339b053a
parent 290241 0eba208813c315fac76f9825cb1385c7432c1f44
child 290243 59fe9a7b94c7e4ced362db3fc46295dec48760a8
push id19656
push usergwagner@mozilla.com
push dateMon, 04 Apr 2016 13:43:23 +0000
treeherderb2g-inbound@e99061fde28a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1257128
milestone48.0a1
Bug 1257128 (part 2) - Remove nsIAtomService.get{,Permanent}AtomUTF8. r=froydnj.
xpcom/ds/nsAtomService.cpp
xpcom/ds/nsIAtomService.idl
--- a/xpcom/ds/nsAtomService.cpp
+++ b/xpcom/ds/nsAtomService.cpp
@@ -29,30 +29,8 @@ nsAtomService::GetPermanentAtom(const ns
 {
   *aResult = NS_NewPermanentAtom(aString);
   if (!*aResult) {
     return NS_ERROR_OUT_OF_MEMORY;
   }
 
   return NS_OK;
 }
-
-NS_IMETHODIMP
-nsAtomService::GetAtomUTF8(const char* aValue, nsIAtom** aResult)
-{
-  *aResult = NS_NewAtom(aValue).take();
-  if (!*aResult) {
-    return NS_ERROR_OUT_OF_MEMORY;
-  }
-
-  return NS_OK;
-}
-
-NS_IMETHODIMP
-nsAtomService::GetPermanentAtomUTF8(const char* aValue, nsIAtom** aResult)
-{
-  *aResult = NS_NewPermanentAtom(NS_ConvertUTF8toUTF16(aValue));
-  if (!*aResult) {
-    return NS_ERROR_OUT_OF_MEMORY;
-  }
-
-  return NS_OK;
-}
--- a/xpcom/ds/nsIAtomService.idl
+++ b/xpcom/ds/nsIAtomService.idl
@@ -33,15 +33,9 @@ interface nsIAtomService : nsISupports {
    */
   nsIAtom getAtom(in AString value);
 
   /**
    * Version of NS_NewPermanentAtom that doesn't require linking against
    * the XPCOM library.  See nsIAtom.idl.
    */
   nsIAtom getPermanentAtom(in AString value);
-
-  /**
-   * Get an atom with a utf8 string.
-   */
-  [noscript] nsIAtom getAtomUTF8(in string value);
-  [noscript] nsIAtom getPermanentAtomUTF8(in string value);
 };