removed unused RCTBaseEvent (1/7)
Summary: `RCTBaseEvent` was never used. This diff removes 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: D2884585 fb-gh-sync-id: 66a6afcda3b5baec7f768682da215570f6d33bb1
This commit is contained in:
parent
6941c4e027
commit
ee533037f6
|
@ -18,22 +18,36 @@
|
|||
#import <OCMock/OCMock.h>
|
||||
#import "RCTEventDispatcher.h"
|
||||
|
||||
@interface RCTTestEvent : RCTBaseEvent
|
||||
|
||||
@property (nonatomic, assign) BOOL canCoalesce;
|
||||
|
||||
@interface RCTTestEvent : NSObject <RCTEvent>
|
||||
@property (atomic, assign, readwrite) BOOL canCoalesce;
|
||||
@end
|
||||
|
||||
@implementation RCTTestEvent
|
||||
{
|
||||
NSDictionary<NSString *, id> *_body;
|
||||
}
|
||||
|
||||
@synthesize viewTag = _viewTag;
|
||||
@synthesize eventName = _eventName;
|
||||
@synthesize body = _body;
|
||||
@synthesize coalescingKey = _coalescingKey;
|
||||
|
||||
- (instancetype)initWithViewTag:(NSNumber *)viewTag eventName:(NSString *)eventName body:(NSDictionary<NSString *, id> *)body
|
||||
{
|
||||
if (self = [super initWithViewTag:viewTag eventName:eventName body:body]) {
|
||||
self.canCoalesce = YES;
|
||||
if (self = [super init]) {
|
||||
_viewTag = viewTag;
|
||||
_eventName = eventName;
|
||||
_body = body;
|
||||
_canCoalesce = YES;
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (id<RCTEvent>)coalesceWithEvent:(id<RCTEvent>)newEvent
|
||||
{
|
||||
return newEvent;
|
||||
}
|
||||
|
||||
+ (NSString *)moduleDotMethod
|
||||
{
|
||||
return @"RCTDeviceEventEmitter.emit";
|
||||
|
|
|
@ -58,13 +58,6 @@ RCT_EXTERN NSString *RCTNormalizeInputEventName(NSString *eventName);
|
|||
|
||||
@end
|
||||
|
||||
@interface RCTBaseEvent : NSObject <RCTEvent>
|
||||
|
||||
- (instancetype)initWithViewTag:(NSNumber *)viewTag
|
||||
eventName:(NSString *)eventName
|
||||
body:(NSDictionary *)body NS_DESIGNATED_INITIALIZER;
|
||||
|
||||
@end
|
||||
|
||||
/**
|
||||
* This class wraps the -[RCTBridge enqueueJSCall:args:] method, and
|
||||
|
|
|
@ -35,52 +35,6 @@ static NSNumber *RCTGetEventID(id<RCTEvent> event)
|
|||
);
|
||||
}
|
||||
|
||||
@implementation RCTBaseEvent
|
||||
|
||||
@synthesize viewTag = _viewTag;
|
||||
@synthesize eventName = _eventName;
|
||||
@synthesize body = _body;
|
||||
|
||||
- (instancetype)initWithViewTag:(NSNumber *)viewTag
|
||||
eventName:(NSString *)eventName
|
||||
body:(NSDictionary *)body
|
||||
{
|
||||
if (RCT_DEBUG) {
|
||||
RCTAssertParam(eventName);
|
||||
}
|
||||
|
||||
if ((self = [super init])) {
|
||||
_viewTag = viewTag;
|
||||
_eventName = eventName;
|
||||
_body = body;
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
RCT_NOT_IMPLEMENTED(- (instancetype)init)
|
||||
|
||||
- (uint16_t)coalescingKey
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
- (BOOL)canCoalesce
|
||||
{
|
||||
return YES;
|
||||
}
|
||||
|
||||
- (id<RCTEvent>)coalesceWithEvent:(id<RCTEvent>)newEvent
|
||||
{
|
||||
return newEvent;
|
||||
}
|
||||
|
||||
+ (NSString *)moduleDotMethod
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@interface RCTEventDispatcher() <RCTFrameUpdateObserver>
|
||||
|
||||
@end
|
||||
|
|
Loading…
Reference in New Issue