From dda18f5df9e48a1f3ed82ddd1ab5b1b77159620e Mon Sep 17 00:00:00 2001 From: Trevor Saunders Date: Fri, 2 Nov 2012 17:49:05 -0400 Subject: [PATCH] bug 808229 - remove unused runnable macros r=surkov --- accessible/src/base/a11yGeneric.h | 61 ------------------------------- 1 file changed, 61 deletions(-) diff --git a/accessible/src/base/a11yGeneric.h b/accessible/src/base/a11yGeneric.h index df92be61788..ec7ad2d031c 100644 --- a/accessible/src/base/a11yGeneric.h +++ b/accessible/src/base/a11yGeneric.h @@ -66,50 +66,6 @@ protected: \ private: \ ClassType *mObj; \ - -#define NS_DECL_RUNNABLEMETHOD(ClassType, Method) \ -class nsRunnableMethod_##Method : public nsRunnable \ -{ \ -public: \ - nsRunnableMethod_##Method(ClassType *aObj) : mObj(aObj) \ - { \ - NS_IF_ADDREF(mObj); \ - } \ - \ - NS_IMETHODIMP Run() \ - { \ - if (!mObj) \ - return NS_OK; \ - (mObj-> Method)(); \ - return NS_OK; \ - } \ - \ - NS_DECL_RUNNABLEMETHOD_HELPER(ClassType, Method) \ - \ -}; - -#define NS_DECL_RUNNABLEMETHOD_ARG1(ClassType, Method, Arg1Type) \ -class nsRunnableMethod_##Method : public nsRunnable \ -{ \ -public: \ - nsRunnableMethod_##Method(ClassType *aObj, Arg1Type aArg1) : \ - mObj(aObj), mArg1(aArg1) \ - { \ - NS_IF_ADDREF(mObj); \ - } \ - \ - NS_IMETHODIMP Run() \ - { \ - if (!mObj) \ - return NS_OK; \ - (mObj-> Method)(mArg1); \ - return NS_OK; \ - } \ - \ - NS_DECL_RUNNABLEMETHOD_HELPER(ClassType, Method) \ - Arg1Type mArg1; \ -}; - #define NS_DECL_RUNNABLEMETHOD_ARG2(ClassType, Method, Arg1Type, Arg2Type) \ class nsRunnableMethod_##Method : public nsRunnable \ { \ @@ -134,23 +90,6 @@ public: \ Arg1Type mArg1; \ Arg2Type mArg2; \ }; - -#define NS_DISPATCH_RUNNABLEMETHOD(Method, Obj) \ -{ \ - nsCOMPtr runnable = \ - new nsRunnableMethod_##Method(Obj); \ - if (runnable) \ - NS_DispatchToMainThread(runnable); \ -} - -#define NS_DISPATCH_RUNNABLEMETHOD_ARG1(Method, Obj, Arg1) \ -{ \ - nsCOMPtr runnable = \ - new nsRunnableMethod_##Method(Obj, Arg1); \ - if (runnable) \ - NS_DispatchToMainThread(runnable); \ -} - #define NS_DISPATCH_RUNNABLEMETHOD_ARG2(Method, Obj, Arg1, Arg2) \ { \ nsCOMPtr runnable = \