Fix unused argument warnings

Reviewed By: milend

Differential Revision: D2795407

fb-gh-sync-id: 83f5cc10b115eef3becb4ebab56b366f1a12a3ad
This commit is contained in:
Nick Lockwood 2015-12-30 14:15:38 -08:00 committed by facebook-github-bot-3
parent 81dc490ab3
commit d7ad393f22
4 changed files with 5 additions and 5 deletions

View File

@ -840,7 +840,7 @@ RCT_EXPORT_METHOD(createView:(nonnull NSNumber *)reactTag
UIColor *backgroundColor = shadowView.backgroundColor;
[self addUIBlock:^(RCTUIManager *uiManager, NSDictionary<NSNumber *, UIView *> *viewRegistry){
UIView *view = [componentData createViewWithTag:reactTag props:props];
UIView *view = [componentData createViewWithTag:reactTag];
if (view) {
if ([view respondsToSelector:@selector(setBackgroundColor:)]) {
((UIView *)view).backgroundColor = backgroundColor;

View File

@ -305,7 +305,7 @@ void RCTProfileHookModules(RCTBridge *bridge)
RCTProfileHookInstance([bridge.uiManager viewForReactTag:view]);
}
Method createView = class_getInstanceMethod([RCTComponentData class], @selector(createViewWithTag:props:));
Method createView = class_getInstanceMethod([RCTComponentData class], @selector(createViewWithTag:));
if (method_getImplementation(createView) != (IMP)RCTProfileCreateView) {
originalCreateView = (typeof(originalCreateView))method_getImplementation(createView);

View File

@ -26,7 +26,7 @@
- (instancetype)initWithManagerClass:(Class)managerClass
bridge:(RCTBridge *)bridge NS_DESIGNATED_INITIALIZER;
- (UIView *)createViewWithTag:(NSNumber *)tag props:(NSDictionary<NSString *, id> *)props;
- (UIView *)createViewWithTag:(NSNumber *)tag;
- (RCTShadowView *)createShadowViewWithTag:(NSNumber *)tag;
- (void)setProps:(NSDictionary<NSString *, id> *)props forView:(id<RCTComponent>)view;
- (void)setProps:(NSDictionary<NSString *, id> *)props forShadowView:(RCTShadowView *)shadowView;

View File

@ -77,7 +77,7 @@ typedef void (^RCTPropBlock)(id<RCTComponent> view, id json);
RCT_NOT_IMPLEMENTED(- (instancetype)init)
- (UIView *)createViewWithTag:(NSNumber *)tag props:(NSDictionary<NSString *, id> *)props
- (UIView *)createViewWithTag:(NSNumber *)tag
{
RCTAssertMainThread();
@ -296,7 +296,7 @@ RCT_NOT_IMPLEMENTED(- (instancetype)init)
}
if (!_defaultView) {
_defaultView = [self createViewWithTag:nil props:nil];
_defaultView = [self createViewWithTag:nil];
}
[props enumerateKeysAndObjectsUsingBlock:^(NSString *key, id json, __unused BOOL *stop) {