mirror of
https://github.com/status-im/react-native.git
synced 2025-02-25 15:45:32 +00:00
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:
parent
ee533037f6
commit
3e89c3ea3b
@ -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
|
||||||
{
|
{
|
||||||
|
@ -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;
|
||||||
|
@ -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>
|
||||||
|
@ -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 = @{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user