From 97d3d590771877cd28aff9036826820ade60df6d Mon Sep 17 00:00:00 2001 From: Peter Argany Date: Sat, 20 Jul 2019 10:36:52 -0700 Subject: [PATCH] Comments & category cleanup Summary: Been reading a lot of code comments getting familiar with Fabric & TM, just fixing a few typos and removing an unused bridge category method. Reviewed By: shergin Differential Revision: D16371581 fbshipit-source-id: bf0cc9c873c60e37124dc715c92d7f105e54e42f --- React/Fabric/RCTSurfaceRegistry.h | 6 +++--- ReactCommon/turbomodule/core/platform/ios/RCTTurboModule.h | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/React/Fabric/RCTSurfaceRegistry.h b/React/Fabric/RCTSurfaceRegistry.h index 06be8d5d581..c98ba0624c9 100644 --- a/React/Fabric/RCTSurfaceRegistry.h +++ b/React/Fabric/RCTSurfaceRegistry.h @@ -17,9 +17,9 @@ typedef void(^RCTSurfaceEnumeratorBlock)(NSEnumerator *enume /** * Registry of Surfaces. - * Incapsulates storing Surface objects and quering them by root tag. + * Incapsulates storing Surface objects and querying them by root tag. * All methods of the registry are thread-safe. - * The registry stores Surface objects as weak refereces. + * The registry stores Surface objects as weak references. */ @interface RCTSurfaceRegistry : NSObject @@ -38,7 +38,7 @@ typedef void(^RCTSurfaceEnumeratorBlock)(NSEnumerator *enume /** * Returns stored Surface object by given root tag. - * If the registry does not have such Surface registred, returns `nil`. + * If the registry does not have such Surface registered, returns `nil`. */ - (nullable RCTFabricSurface *)surfaceForRootTag:(ReactTag)rootTag; diff --git a/ReactCommon/turbomodule/core/platform/ios/RCTTurboModule.h b/ReactCommon/turbomodule/core/platform/ios/RCTTurboModule.h index 4c05f2ff107..05e0af4b6e4 100644 --- a/ReactCommon/turbomodule/core/platform/ios/RCTTurboModule.h +++ b/ReactCommon/turbomodule/core/platform/ios/RCTTurboModule.h @@ -91,7 +91,6 @@ private: // TODO: Consolidate this extension with the one in RCTSurfacePresenter. @interface RCTBridge () -- (std::shared_ptr)jsMessageThread; - (std::weak_ptr)reactInstance; @end