removed coalescingKey from events (2/7)

Summary:
This property was never used, so I'm removing it.

public
___
//This diff is part of a larger stack. For high level overview what's going on jump to D2884593.//

Reviewed By: javache

Differential Revision: D2884587

fb-gh-sync-id: acd5e576cd13a02e77225f3b308232f8331d3b61
This commit is contained in:
Martin Kralik 2016-02-03 05:22:12 -08:00 committed by facebook-github-bot-4
parent ee533037f6
commit 3e89c3ea3b
4 changed files with 1 additions and 10 deletions

View File

@ -30,7 +30,6 @@
@synthesize viewTag = _viewTag; @synthesize viewTag = _viewTag;
@synthesize eventName = _eventName; @synthesize eventName = _eventName;
@synthesize body = _body; @synthesize body = _body;
@synthesize coalescingKey = _coalescingKey;
- (instancetype)initWithViewTag:(NSNumber *)viewTag eventName:(NSString *)eventName body:(NSDictionary<NSString *, id> *)body - (instancetype)initWithViewTag:(NSNumber *)viewTag eventName:(NSString *)eventName body:(NSDictionary<NSString *, id> *)body
{ {

View File

@ -49,7 +49,6 @@ RCT_EXTERN NSString *RCTNormalizeInputEventName(NSString *eventName);
@property (nonatomic, strong, readonly) NSNumber *viewTag; @property (nonatomic, strong, readonly) NSNumber *viewTag;
@property (nonatomic, copy, readonly) NSString *eventName; @property (nonatomic, copy, readonly) NSString *eventName;
@property (nonatomic, copy, readonly) NSDictionary *body; @property (nonatomic, copy, readonly) NSDictionary *body;
@property (nonatomic, assign, readonly) uint16_t coalescingKey;
- (BOOL)canCoalesce; - (BOOL)canCoalesce;
- (id<RCTEvent>)coalesceWithEvent:(id<RCTEvent>)newEvent; - (id<RCTEvent>)coalesceWithEvent:(id<RCTEvent>)newEvent;

View File

@ -30,9 +30,7 @@ static NSNumber *RCTGetEventID(id<RCTEvent> event)
{ {
return @( return @(
event.viewTag.intValue | event.viewTag.intValue |
(((uint64_t)event.eventName.hash & 0xFFFF) << 32) | (((uint64_t)event.eventName.hash & 0xFFFF) << 32));
(((uint64_t)event.coalescingKey) << 48)
);
} }
@interface RCTEventDispatcher() <RCTFrameUpdateObserver> @interface RCTEventDispatcher() <RCTFrameUpdateObserver>

View File

@ -59,11 +59,6 @@ CGFloat const ZINDEX_STICKY_HEADER = 50;
RCT_NOT_IMPLEMENTED(- (instancetype)init) RCT_NOT_IMPLEMENTED(- (instancetype)init)
- (uint16_t)coalescingKey
{
return 0;
}
- (NSDictionary *)body - (NSDictionary *)body
{ {
NSDictionary *body = @{ NSDictionary *body = @{