Bug 1167384 - Remove unused SelfRef class. r=ehsan
authorMichael Layzell <michael@thelayzells.com>
Thu, 21 May 2015 14:16:00 +0200
changeset 275846 a975da08b624a7a38e4ec2ae87056a2589ad4571
parent 275787 f9aaae416bbb2443bc0cca174a76619b0c60e7ae
child 275847 f2a8c2a5878bafdbfa2a19e28e1f23555b9cb925
push id3246
push usergijskruitbosch@gmail.com
push dateTue, 07 Jul 2015 09:06:38 +0000
reviewersehsan
bugs1167384
milestone42.0a1
Bug 1167384 - Remove unused SelfRef class. r=ehsan
dom/bindings/BindingUtils.h
--- a/dom/bindings/BindingUtils.h
+++ b/dom/bindings/BindingUtils.h
@@ -41,25 +41,16 @@
 
 class nsIJSID;
 class nsPIDOMWindow;
 
 namespace mozilla {
 namespace dom {
 template<typename DataType> class MozMap;
 
-struct SelfRef
-{
-  SelfRef() : ptr(nullptr) {}
-  explicit SelfRef(nsISupports *p) : ptr(p) {}
-  ~SelfRef() { NS_IF_RELEASE(ptr); }
-
-  nsISupports* ptr;
-};
-
 nsresult
 UnwrapArgImpl(JS::Handle<JSObject*> src, const nsIID& iid, void** ppArg);
 
 /** Convert a jsval to an XPCOM pointer. */
 template <class Interface>
 inline nsresult
 UnwrapArg(JS::Handle<JSObject*> src, Interface** ppArg)
 {