Skip to content

Commit

Permalink
remove override on setModuleRegistry
Browse files Browse the repository at this point in the history
Summary:
changelog: [internal]

this never fired, so it's not the cause of the nil moduleRegistry issue

Reviewed By: christophpurrer

Differential Revision: D35419873

fbshipit-source-id: 45693d3aa97d9efed2fe5085c281b57f1629764d
  • Loading branch information
philIip authored and facebook-github-bot committed Apr 6, 2022
1 parent fcdcc8a commit 98071f7
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions React/CoreModules/RCTDeviceInfo.mm
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,6 @@ - (void)initialize
object:nil];
}

- (void)setModuleRegistry:(RCTModuleRegistry *)moduleRegistry
{
if (!moduleRegistry) {
RCTAssert(false, @"moduleRegistry should not be nil, _moduleRegistry is nil: %d", _moduleRegistry == nil);
}
_moduleRegistry = moduleRegistry;
}

static BOOL RCTIsIPhoneX()
{
static BOOL isIPhoneX = NO;
Expand Down

0 comments on commit 98071f7

Please sign in to comment.