@samitouri / QOS-React-2 / commits / c64f40d718

[Flare] Remove dead event target code (#16063)

Dominic Gannaway committed Jul 4, 2019 at 13:10 UTC c64f40d718021b8574e7e245938d0c8072266ee2
5 files changed +1 -85
packages/react-art/src/ReactARTHostConfig.js
-25
@@ -444,28 +444,3 @@ export function unmountEventComponent(
444 ): void {
445 throw new Error('Not yet implemented.');
446 }
447 -
448 -export function getEventTargetChildElement(
449 - type: Symbol | number,
450 - props: Props,
451 -): null {
452 - throw new Error('Not yet implemented.');
453 -}
454 -
455 -export function handleEventTarget(
456 - type: Symbol | number,
457 - props: Props,
458 - rootContainerInstance: Container,
459 - internalInstanceHandle: Object,
460 -): boolean {
461 - throw new Error('Not yet implemented.');
462 -}
463 -
464 -export function commitEventTarget(
465 - type: Symbol | number,
466 - props: Props,
467 - instance: Instance,
468 - parentInstance: Instance,
469 -): void {
470 - throw new Error('Not yet implemented.');
471 -}
packages/react-native-renderer/src/ReactFabricHostConfig.js
-25
@@ -474,28 +474,3 @@ export function unmountEventComponent(
474 unmountEventResponder(eventComponentInstance);
475 }
476 }
477 -
478 -export function getEventTargetChildElement(
479 - type: Symbol | number,
480 - props: Props,
481 -): null {
482 - throw new Error('Not yet implemented.');
483 -}
484 -
485 -export function handleEventTarget(
486 - type: Symbol | number,
487 - props: Props,
488 - rootContainerInstance: Container,
489 - internalInstanceHandle: Object,
490 -): boolean {
491 - throw new Error('Not yet implemented.');
492 -}
493 -
494 -export function commitEventTarget(
495 - type: Symbol | number,
496 - props: Props,
497 - instance: Instance,
498 - parentInstance: Instance,
499 -): void {
500 - throw new Error('Not yet implemented.');
501 -}
packages/react-native-renderer/src/ReactNativeHostConfig.js
-25
@@ -513,28 +513,3 @@ export function unmountEventComponent(
513 ): void {
514 throw new Error('Not yet implemented.');
515 }
516 -
517 -export function getEventTargetChildElement(
518 - type: Symbol | number,
519 - props: Props,
520 -): null {
521 - throw new Error('Not yet implemented.');
522 -}
523 -
524 -export function handleEventTarget(
525 - type: Symbol | number,
526 - props: Props,
527 - rootContainerInstance: Container,
528 - internalInstanceHandle: Object,
529 -): boolean {
530 - throw new Error('Not yet implemented.');
531 -}
532 -
533 -export function commitEventTarget(
534 - type: Symbol | number,
535 - props: Props,
536 - instance: Instance,
537 - parentInstance: Instance,
538 -): void {
539 - throw new Error('Not yet implemented.');
540 -}
packages/react-reconciler/src/forks/ReactFiberHostConfig.custom.js
-2
@@ -66,8 +66,6 @@ export const supportsHydration = $$$hostConfig.supportsHydration;
66 export const mountEventComponent = $$$hostConfig.mountEventComponent;
67 export const updateEventComponent = $$$hostConfig.updateEventComponent;
68 export const handleEventTarget = $$$hostConfig.handleEventTarget;
69 -export const getEventTargetChildElement =
70 - $$$hostConfig.getEventTargetChildElement;
69
70 // -------------------
71 // Mutation
packages/shared/ReactTypes.js
+1 -8
@@ -14,8 +14,7 @@ export type ReactNode =
14 | ReactFragment
15 | ReactProvider<any>
16 | ReactConsumer<any>
17 - | ReactEventComponent<any, any, any>
18 - | ReactEventTarget;
17 + | ReactEventComponent<any, any, any>;
18
19 export type ReactEmpty = null | void | boolean;
20
@@ -111,12 +110,6 @@ export type ReactEventComponent<T, E, C> = {|
110 responder: ReactEventResponder<T, E, C>,
111 |};
112
114 -export type ReactEventTarget = {|
115 - $$typeof: Symbol | number,
116 - displayName?: string,
117 - type: Symbol | number,
118 -|};
119 -
113 export opaque type EventPriority = 0 | 1 | 2;
114
115 export const DiscreteEvent: EventPriority = 0;