From f0fac3d7eeaeae28a80f3f74310b1bd7c92f5cf4 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Mon, 11 Jan 2021 19:30:51 +0200 Subject: Bin two unused macros Change-Id: I3e84b2183401e82b7b66c7a191b38d45ee935854 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109109 Tested-by: Tor Lillqvist Reviewed-by: Tor Lillqvist --- vcl/inc/quartz/common.h | 10 ---------- 1 file changed, 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 #include - -// 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 std::ostream &operator <<(std::ostream& s, CTFontRef pFont); -- cgit