Skip to content

Commit

Permalink
Remove unused autocompleter backcompat case (#8058)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonpayton authored Jul 19, 2018
1 parent b28a678 commit 99737c3
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions packages/components/src/autocomplete/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,14 +274,6 @@ export class Autocomplete extends Component {
onReplace( [ value ] );
} else if ( 'insert-at-caret' === action ) {
this.insertCompletion( range, value );
} else if ( 'backcompat' === action ) {
// NOTE: This block should be removed once we no longer support the old completer interface.
const onSelect = value;
const deprecatedOptionObject = option.value;
const selectionResult = onSelect( deprecatedOptionObject.value, range, query );
if ( selectionResult !== undefined ) {
this.insertCompletion( range, selectionResult );
}
}
}

Expand Down

0 comments on commit 99737c3

Please sign in to comment.