Skip to content

Commit

Permalink
[Flare] Remove dead event target code (#16063)
Browse files Browse the repository at this point in the history
  • Loading branch information
trueadm committed Jul 4, 2019
1 parent e6bfa32 commit c64f40d
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 85 deletions.
25 changes: 0 additions & 25 deletions packages/react-art/src/ReactARTHostConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -444,28 +444,3 @@ export function unmountEventComponent(
): void {
throw new Error('Not yet implemented.');
}

export function getEventTargetChildElement(
type: Symbol | number,
props: Props,
): null {
throw new Error('Not yet implemented.');
}

export function handleEventTarget(
type: Symbol | number,
props: Props,
rootContainerInstance: Container,
internalInstanceHandle: Object,
): boolean {
throw new Error('Not yet implemented.');
}

export function commitEventTarget(
type: Symbol | number,
props: Props,
instance: Instance,
parentInstance: Instance,
): void {
throw new Error('Not yet implemented.');
}
25 changes: 0 additions & 25 deletions packages/react-native-renderer/src/ReactFabricHostConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -474,28 +474,3 @@ export function unmountEventComponent(
unmountEventResponder(eventComponentInstance);
}
}

export function getEventTargetChildElement(
type: Symbol | number,
props: Props,
): null {
throw new Error('Not yet implemented.');
}

export function handleEventTarget(
type: Symbol | number,
props: Props,
rootContainerInstance: Container,
internalInstanceHandle: Object,
): boolean {
throw new Error('Not yet implemented.');
}

export function commitEventTarget(
type: Symbol | number,
props: Props,
instance: Instance,
parentInstance: Instance,
): void {
throw new Error('Not yet implemented.');
}
25 changes: 0 additions & 25 deletions packages/react-native-renderer/src/ReactNativeHostConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -513,28 +513,3 @@ export function unmountEventComponent(
): void {
throw new Error('Not yet implemented.');
}

export function getEventTargetChildElement(
type: Symbol | number,
props: Props,
): null {
throw new Error('Not yet implemented.');
}

export function handleEventTarget(
type: Symbol | number,
props: Props,
rootContainerInstance: Container,
internalInstanceHandle: Object,
): boolean {
throw new Error('Not yet implemented.');
}

export function commitEventTarget(
type: Symbol | number,
props: Props,
instance: Instance,
parentInstance: Instance,
): void {
throw new Error('Not yet implemented.');
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ export const supportsHydration = $$$hostConfig.supportsHydration;
export const mountEventComponent = $$$hostConfig.mountEventComponent;
export const updateEventComponent = $$$hostConfig.updateEventComponent;
export const handleEventTarget = $$$hostConfig.handleEventTarget;
export const getEventTargetChildElement =
$$$hostConfig.getEventTargetChildElement;

// -------------------
// Mutation
Expand Down
9 changes: 1 addition & 8 deletions packages/shared/ReactTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ export type ReactNode =
| ReactFragment
| ReactProvider<any>
| ReactConsumer<any>
| ReactEventComponent<any, any, any>
| ReactEventTarget;
| ReactEventComponent<any, any, any>;

export type ReactEmpty = null | void | boolean;

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

export type ReactEventTarget = {|
$$typeof: Symbol | number,
displayName?: string,
type: Symbol | number,
|};

export opaque type EventPriority = 0 | 1 | 2;

export const DiscreteEvent: EventPriority = 0;
Expand Down

0 comments on commit c64f40d

Please sign in to comment.