react-native-macos/RNTester/RNTesterUnitTests
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
..
OCMock Use CocoaPods-based RNTesterPods for iOS tests (#25416) 2019-06-28 19:18:10 -07:00
Info.plist Use CocoaPods-based RNTesterPods for iOS tests (#25416) 2019-06-28 19:18:10 -07:00
RCTAllocationTests.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTAnimationUtilsTests.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTBlobManagerTests.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTBundleURLProviderTests.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTComponentPropsTests.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTConvert_NSURLTests.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTConvert_YGValueTests.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTDevMenuTests.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTEventDispatcherTests.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTFontTests.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTFormatErrorTests.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTGzipTests.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTImageLoaderHelpers.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTImageLoaderHelpers.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTImageLoaderTests.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTImageUtilTests.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTJSONTests.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTMethodArgumentTests.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTModuleInitNotificationRaceTests.m Remove unneeded NSNotification center removeObserver 2019-11-04 10:19:30 -08:00
RCTModuleInitTests.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTModuleMethodTests.mm Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTMultipartStreamReaderTests.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTNativeAnimatedNodesManagerTests.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTPerformanceLoggerTests.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTShadowViewTests.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTUIManagerTests.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTURLUtilsTests.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTUnicodeDecodeTests.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTUtilsTests.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RNTesterUnitTestsBundle.js Fix linting issues (#22062) 2018-11-01 14:29:16 -07:00
libOCMock.a Re-license and rename UIExplorer integration test app as RNTester 2017-05-08 11:31:19 -07:00