From cdb94d30bcf08b0c0b1587facc01b8b5a3069648 Mon Sep 17 00:00:00 2001 From: Michael Schneider Date: Thu, 25 Oct 2018 08:47:22 -0700 Subject: [PATCH] Move AS_TEXT_ALERT_UNIMPLEMENTED_FEATURE into ASTextNodeCommon (#1191) --- Source/ASTextNode2.mm | 7 ------- Source/ASTextNodeCommon.h | 7 +++++++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Source/ASTextNode2.mm b/Source/ASTextNode2.mm index 4a43278da..e11d3b996 100644 --- a/Source/ASTextNode2.mm +++ b/Source/ASTextNode2.mm @@ -48,13 +48,6 @@ @implementation ASTextCacheValue */ #define AS_TEXTNODE2_RECORD_ATTRIBUTED_STRINGS 0 -#define AS_TEXT_ALERT_UNIMPLEMENTED_FEATURE() { \ - static dispatch_once_t onceToken; \ - dispatch_once(&onceToken, ^{ \ - NSLog(@"[Texture] Warning: Feature %@ is unimplemented in the experimental text node.", NSStringFromSelector(_cmd)); \ - });\ -} - /** * If it can't find a compatible layout, this method creates one. * diff --git a/Source/ASTextNodeCommon.h b/Source/ASTextNodeCommon.h index c702561e6..fbb32ca39 100644 --- a/Source/ASTextNodeCommon.h +++ b/Source/ASTextNodeCommon.h @@ -10,6 +10,13 @@ @class ASTextNode; +#define AS_TEXT_ALERT_UNIMPLEMENTED_FEATURE() { \ + static dispatch_once_t onceToken; \ + dispatch_once(&onceToken, ^{ \ + NSLog(@"[Texture] Warning: Feature %@ is unimplemented in %@.", NSStringFromSelector(_cmd), NSStringFromClass(self.class)); \ + });\ +} + /** * Highlight styles. */