summaryrefslogtreecommitdiff
path: root/vcl/inc/quartz/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/inc/quartz/common.h')
-rw-r--r--vcl/inc/quartz/common.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/vcl/inc/quartz/common.h b/vcl/inc/quartz/common.h
index 0037111985f8..851fa5d7a727 100644
--- a/vcl/inc/quartz/common.h
+++ b/vcl/inc/quartz/common.h
@@ -32,16 +32,6 @@
#include <postmac.h>
#include <sal/types.h>
-
-// CoreFoundation designers, in their wisdom, decided that CFRelease of NULL
-// cause a Crash, yet few API can return NULL when asking for the creation
-// of an object, which force us to paper the code with ugly if construct everywhere
-// and open the door to very nasty crash on rare occasion
-// this macro hide the mess
-#define SafeCFRelease(a) do { if(a) { CFRelease(a); (a)=NULL; } } while(false)
-
-#define round_to_long(a) ((a) >= 0 ? ((long)((a) + 0.5)) : ((long)((a) - 0.5)))
-
#include <vcl/salgtype.hxx>
std::ostream &operator <<(std::ostream& s, CTFontRef pFont);