react-native-macos/Libraries/Text
Peter Argany dc3b5ad275 Remove unneeded NSNotification center removeObserver
Summary:
A very common pattern I've seen in RN codebase:

     - (instancetype) init {
        [[NSNotificationCenter defaultCenter] addObserver:self ...]
      }

    - (void) dealloc {
       [[NSNotificationCenter defaultCenter] removeObserver:self ...]
     }

From Apple:

https://developer.apple.com/documentation/foundation/nsnotificationcenter/1413994-removeobserver?language=objc

> If your app targets iOS 9.0 and later or macOS 10.11 and later, you don't need to unregister an observer in its dealloc method.

RN targets iOS9+

Changelog: [Internal][Cleanup] Remove unneeded NSNotification center removeObserver

Reviewed By: shergin

Differential Revision: D18264235

fbshipit-source-id: 684e5f5555cec96b055b13cd83daaeb393f4fac9
2019-11-04 10:19:30 -08:00
..
BaseText Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RawText Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
Text Remove unneeded NSNotification center removeObserver 2019-11-04 10:19:30 -08:00
TextInput Remove unneeded NSNotification center removeObserver 2019-11-04 10:19:30 -08:00
VirtualText Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTConvert+Text.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTConvert+Text.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTTextAttributes.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTTextAttributes.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTTextTransform.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
React-RCTText.podspec Move non-license comments out of license header 2019-10-15 20:12:12 -07:00
Text.js Migrate "Libraries" from Haste to standard path-based requires (sans vendor & renderers) (#24749) 2019-05-08 08:48:59 -07:00
TextAncestor.js Deploy v0.106.0 to xplat/js 2019-08-23 08:06:44 -07:00
TextProps.js Remove deprecated accessibilityStates property. (#26168) 2019-09-02 11:25:31 -07:00