diff --git a/Source/ASTextNode.mm b/Source/ASTextNode.mm index e872a0929..71138045e 100644 --- a/Source/ASTextNode.mm +++ b/Source/ASTextNode.mm @@ -261,14 +261,6 @@ - (instancetype)init - (void)dealloc { CGColorRelease(_shadowColor); - - // TODO: This may not be necessary post-iOS-9 when most UIKit assign APIs - // were changed to weak. - if (_longPressGestureRecognizer) { - _longPressGestureRecognizer.delegate = nil; - [_longPressGestureRecognizer removeTarget:nil action:NULL]; - [self.view removeGestureRecognizer:_longPressGestureRecognizer]; - } } #pragma mark - Description diff --git a/Source/ASTextNode2.mm b/Source/ASTextNode2.mm index 7fa844ba1..2eb0ad5aa 100644 --- a/Source/ASTextNode2.mm +++ b/Source/ASTextNode2.mm @@ -227,12 +227,6 @@ - (instancetype)init - (void)dealloc { CGColorRelease(_shadowColor); - - if (_longPressGestureRecognizer) { - _longPressGestureRecognizer.delegate = nil; - [_longPressGestureRecognizer removeTarget:nil action:NULL]; - [self.view removeGestureRecognizer:_longPressGestureRecognizer]; - } } #pragma mark - Description