mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug 1494077: Remove unused macro and its supporting #define to fix a unified build problem. r=mak
--HG-- extra : rebase_source : ecb363e35dee56a2c4d1c3cd4c5825a7017569ea
This commit is contained in:
parent
4367a5a4ab
commit
cf67c848e4
@ -6,10 +6,6 @@
|
||||
#include "nsIConsoleService.h"
|
||||
#include "nsIScriptError.h"
|
||||
|
||||
#ifndef __FUNCTION__
|
||||
#define __FUNCTION__ __func__
|
||||
#endif
|
||||
|
||||
// Call a method on each observer in a category cache, then call the same
|
||||
// method on the observer array.
|
||||
#define NOTIFY_OBSERVERS(canFire, array, type, method) \
|
||||
@ -53,19 +49,3 @@
|
||||
} \
|
||||
return ret.forget(); \
|
||||
}
|
||||
|
||||
#define PLACES_WARN_DEPRECATED() \
|
||||
PR_BEGIN_MACRO \
|
||||
nsCString msg(__FUNCTION__); \
|
||||
msg.AppendLiteral(" is deprecated and will be removed in the next version.");\
|
||||
NS_WARNING(msg.get()); \
|
||||
nsCOMPtr<nsIConsoleService> cs = do_GetService(NS_CONSOLESERVICE_CONTRACTID);\
|
||||
if (cs) { \
|
||||
nsCOMPtr<nsIScriptError> e = do_CreateInstance(NS_SCRIPTERROR_CONTRACTID); \
|
||||
if (e && NS_SUCCEEDED(e->Init(NS_ConvertUTF8toUTF16(msg), EmptyString(), \
|
||||
EmptyString(), 0, 0, \
|
||||
nsIScriptError::errorFlag, "Places"))) { \
|
||||
cs->LogMessage(e); \
|
||||
} \
|
||||
} \
|
||||
PR_END_MACRO
|
||||
|
Loading…
Reference in New Issue
Block a user