Skip to content

Commit

Permalink
Fix #6508: remove unused codes (#6509)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rekl0w authored May 1, 2024
1 parent ff5d328 commit 50fecc4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions components/lib/autocomplete/AutoComplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -452,10 +452,6 @@ export const AutoComplete = React.memo(
return props.value ? props.value.some((v) => ObjectUtils.equals(v, val)) : false;
};

const findOptionIndex = (option) => {
return props.suggestions ? props.suggestions.findIndex((s) => ObjectUtils.equals(s, option)) : -1;
};

const getScrollableElement = () => {
return overlayRef.current.firstChild;
};
Expand Down
2 changes: 1 addition & 1 deletion components/lib/autocomplete/AutoCompletePanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export const AutoCompletePanel = React.memo(
);
};

const createGroupChildren = (optionGroup, i, style) => {
const createGroupChildren = (optionGroup, i) => {
const groupChildren = props.getOptionGroupChildren(optionGroup);

return groupChildren.map((item, j) => {
Expand Down

0 comments on commit 50fecc4

Please sign in to comment.