aboutsummaryrefslogtreecommitdiff
path: root/xbmc/utils/GlobalsHandling.h
diff options
context:
space:
mode:
Diffstat (limited to 'xbmc/utils/GlobalsHandling.h')
-rw-r--r--xbmc/utils/GlobalsHandling.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/xbmc/utils/GlobalsHandling.h b/xbmc/utils/GlobalsHandling.h
index ab46c58538..1e18ede49e 100644
--- a/xbmc/utils/GlobalsHandling.h
+++ b/xbmc/utils/GlobalsHandling.h
@@ -212,13 +212,3 @@ namespace xbmcutil
* #define g_variable XBMC_GLOBAL_USE(classname)
*/
#define XBMC_GLOBAL_USE(classname) (*(xbmcutil::GlobalsSingleton<classname>::getQuick()))
-
-/**
- * For pattern (1) above, you can use the following macro. WARNING: This should only
- * be used when the global in question is never accessed, directly or indirectly, from
- * a static method called (again, directly or indirectly) during startup or shutdown.
- */
-#define XBMC_GLOBAL(classname,g_variable) \
- XBMC_GLOBAL_REF(classname,g_variable); \
- static classname & g_variable = (*(g_variable##Ref.get()))
-