summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2021-01-11 19:30:51 +0200
committerTor Lillqvist <tml@collabora.com>2021-01-11 21:07:18 +0100
commitf0fac3d7eeaeae28a80f3f74310b1bd7c92f5cf4 (patch)
tree030947f95d0f4c84678487d246ae85f03fba7d6f
parentaf0c1195d02079b264d21f95093db76609a3d412 (diff)
Bin two unused macros
Change-Id: I3e84b2183401e82b7b66c7a191b38d45ee935854 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109109 Tested-by: Tor Lillqvist <tml@collabora.com> Reviewed-by: Tor Lillqvist <tml@collabora.com>
-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);