Round 2: Remove synthesize bridge = _bridge

Summary:
All NativeModules that used to use the bridge to require other NativeModules now require other NativeModules via the Venice-compatible RCTModuleRegistry abstraction. Therefore, we can safely get rid of synthesize bridge = _bridge from them.

## How did I generate this diff?
1. Search for all NativeModules that have `synthesize bridge =`
2. Remove the `synthesize bridge = _bridge` from each NativeModule, and if it doesn't contain `_bridge`, `setBridge:`, or `elf.bridge`, add it to this codemod.

Changelog: [Internal]

Reviewed By: PeteTheHeat

Differential Revision: D25551295

fbshipit-source-id: 585d50ad55cb9ab083e430b07e1cf30e31f0d3c5
This commit is contained in:
Ramanpreet Nara
2020-12-17 10:13:32 -08:00
committed by Facebook GitHub Bot
parent b4c9f13fe7
commit df0bfec201
6 changed files with 0 additions and 6 deletions
-1
View File
@@ -23,7 +23,6 @@
RCT_EXPORT_MODULE(FileReaderModule)
@synthesize bridge = _bridge;
@synthesize moduleRegistry = _moduleRegistry;
RCT_EXPORT_METHOD(readAsText:(NSDictionary<NSString *, id> *)blob
@@ -26,7 +26,6 @@
RCT_EXPORT_MODULE()
@synthesize bridge = _bridge;
@synthesize moduleRegistry = _moduleRegistry;
/**
@@ -25,7 +25,6 @@
std::mutex _mutex;
}
@synthesize bridge = _bridge;
@synthesize moduleRegistry = _moduleRegistry;
@synthesize methodQueue = _methodQueue;
-1
View File
@@ -24,7 +24,6 @@
NSUserDefaults *_defaults;
}
@synthesize bridge = _bridge;
@synthesize moduleRegistry = _moduleRegistry;
RCT_EXPORT_MODULE()
-1
View File
@@ -27,7 +27,6 @@ using namespace facebook::react;
NSDictionary *_currentInterfaceDimensions;
}
@synthesize bridge = _bridge;
@synthesize moduleRegistry = _moduleRegistry;
@synthesize turboModuleRegistry = _turboModuleRegistry;
@@ -23,7 +23,6 @@
@implementation RCTExceptionsManager
@synthesize bridge = _bridge;
@synthesize moduleRegistry = _moduleRegistry;
RCT_EXPORT_MODULE()