Remove unused prop

Summary:
While reading through the Inspector I found this prop passed down and not used anywhere

printer_shredder

Reviewed By: Katalune

Differential Revision: D22431895

fbshipit-source-id: 6cbc97b3faec26349a1ad900ffa455e95f53bb2b
This commit is contained in:
Paco Estevez Garcia
2020-07-08 07:00:39 -07:00
committed by Facebook GitHub Bot
parent 79997f2b38
commit 29b6be23e8
6 changed files with 0 additions and 7 deletions

View File

@@ -61,7 +61,6 @@ export type ElementsInspectorProps = {
| ((key: ElementID | undefined | null) => any)
| undefined
| null;
onValueChanged: ((path: Array<string>, val: any) => any) | undefined | null;
selected: ElementID | undefined | null;
focused?: ElementID | undefined | null;
searchResults?: ElementSearchResultSet | undefined | null;

View File

@@ -48,7 +48,6 @@ type Props = {
selectedElement: ElementID | null | undefined;
selectedAXElement: ElementID | null | undefined;
onSelect: (ids: ElementID | null | undefined) => void;
onDataValueChanged: (path: Array<string>, value: any) => void;
setPersistedState: (state: Partial<PersistedState>) => void;
persistedState: PersistedState;
searchResults: ElementSearchResultSet | null;
@@ -443,7 +442,6 @@ export default class Inspector extends Component<Props, State> {
onElementSelected={this.onElementSelectedAtMainSection}
onElementHovered={this.onElementHovered}
onElementExpanded={this.onElementExpanded}
onValueChanged={this.props.onDataValueChanged}
searchResults={this.props.searchResults}
selected={this.selected()}
root={this.root()}

View File

@@ -84,7 +84,6 @@ const MultipleSelectorSection: React.FC<MultipleSelectorSectionProps> = memo(
}}
onElementHovered={onElementHovered}
onElementExpanded={() => {}}
onValueChanged={null}
root={null}
selected={selectedId}
elements={elements}

View File

@@ -37,7 +37,6 @@ beforeEach(() => {
selectedElement={null}
selectedAXElement={null}
onSelect={() => {}}
onDataValueChanged={() => {}}
setPersistedState={() => {}}
persistedState={{
rootElement: null,

View File

@@ -344,7 +344,6 @@ export default class LayoutPlugin extends FlipperPlugin<
selectedAXElement: this.state.selectedAXElement,
setPersistedState: this.props.setPersistedState,
persistedState: this.props.persistedState,
onDataValueChanged: this.onDataValueChanged,
searchResults: this.state.searchResults,
};

View File

@@ -200,7 +200,6 @@ export default class LeakCanary<PersistedState> extends FlipperPlugin<
onElementExpanded={(eid /*, deep*/) => {
this._toggleElement(idx, eid);
}}
onValueChanged={() => {}}
selected={selected}
searchResults={null}
root={leak.root}