Skip to content

Commit

Permalink
Inline the unused export locateIn, as highlighted in #5062
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSpyder committed Jul 9, 2019
1 parent f61bd0d commit 1a5b57a
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ import { Compare, SelectorFilter, Visibility } from '@ephox/sugar';
import * as ArrPinpoint from './ArrPinpoint';

const locateVisible = (container, current, selector) => {
const filter = Visibility.isVisible;
return locateIn(container, current, selector, filter);
};

const locateIn = (container, current, selector, filter) => {
const predicate = Fun.curry(Compare.eq, current);
const candidates = SelectorFilter.descendants(container, selector);
const visible = Arr.filter(candidates, Visibility.isVisible);
Expand All @@ -23,6 +18,5 @@ const findIndex = (elements, target) => {

export {
locateVisible,
locateIn,
findIndex
};

0 comments on commit 1a5b57a

Please sign in to comment.