Skip to content

Commit c64f40d

Browse files
authored
[Flare] Remove dead event target code (facebook#16063)
1 parent e6bfa32 commit c64f40d

File tree

5 files changed

+1
-85
lines changed

5 files changed

+1
-85
lines changed

packages/react-art/src/ReactARTHostConfig.js

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -444,28 +444,3 @@ export function unmountEventComponent(
444444
): void {
445445
throw new Error('Not yet implemented.');
446446
}
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

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -474,28 +474,3 @@ export function unmountEventComponent(
474474
unmountEventResponder(eventComponentInstance);
475475
}
476476
}
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

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -513,28 +513,3 @@ export function unmountEventComponent(
513513
): void {
514514
throw new Error('Not yet implemented.');
515515
}
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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ export const supportsHydration = $$$hostConfig.supportsHydration;
6666
export const mountEventComponent = $$$hostConfig.mountEventComponent;
6767
export const updateEventComponent = $$$hostConfig.updateEventComponent;
6868
export const handleEventTarget = $$$hostConfig.handleEventTarget;
69-
export const getEventTargetChildElement =
70-
$$$hostConfig.getEventTargetChildElement;
7169

7270
// -------------------
7371
// Mutation

packages/shared/ReactTypes.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ export type ReactNode =
1414
| ReactFragment
1515
| ReactProvider<any>
1616
| ReactConsumer<any>
17-
| ReactEventComponent<any, any, any>
18-
| ReactEventTarget;
17+
| ReactEventComponent<any, any, any>;
1918

2019
export type ReactEmpty = null | void | boolean;
2120

@@ -111,12 +110,6 @@ export type ReactEventComponent<T, E, C> = {|
111110
responder: ReactEventResponder<T, E, C>,
112111
|};
113112

114-
export type ReactEventTarget = {|
115-
$$typeof: Symbol | number,
116-
displayName?: string,
117-
type: Symbol | number,
118-
|};
119-
120113
export opaque type EventPriority = 0 | 1 | 2;
121114

122115
export const DiscreteEvent: EventPriority = 0;

0 commit comments

Comments
 (0)