Bug 1081810 - Part 2: Get rid of DOMError.init. r=smaug
authorEdgar Chen <echen@mozilla.com>
Tue, 14 Oct 2014 11:09:07 +0800
changeset 210395 511be093541f41786062b10a884f65729b35a4c6
parent 210394 547119c5331081590958889b49c666bcccf466be
child 210396 cdfbd6b18afc2961384de5e102918dcb0eaacebf
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewerssmaug
bugs1081810
milestone36.0a1
Bug 1081810 - Part 2: Get rid of DOMError.init. r=smaug
dom/base/DOMError.h
dom/webidl/DOMError.webidl
--- a/dom/base/DOMError.h
+++ b/dom/base/DOMError.h
@@ -69,22 +69,16 @@ public:
   {
     aRetval = mName;
   }
 
   void GetMessage(nsString& aRetval) const
   {
     aRetval = mMessage;
   }
-
-  void Init(const nsAString& aName, const nsAString& aMessage)
-  {
-    mName = aName;
-    mMessage = aMessage;
-  }
 };
 
 NS_DEFINE_STATIC_IID_ACCESSOR(DOMError, DOMERROR_IID)
 
 } // namespace dom
 } // namespace mozilla
 
 #endif // mozilla_dom_domerror_h__
--- a/dom/webidl/DOMError.webidl
+++ b/dom/webidl/DOMError.webidl
@@ -12,12 +12,9 @@
 
 [Constructor(DOMString name, optional DOMString message = "")]
 interface DOMError {
   [Constant]
   readonly attribute DOMString name;
 
   [Constant]
   readonly attribute DOMString message;
-
-  [ChromeOnly]
-  void init(DOMString name, optional DOMString message = "");
 };