Bug 1167384 - Remove unused SelfRef class. r=ehsan
--- 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)
{