Remove discarding of assumed unoptimal selectors

This was a bad idea.

Related commit:
- 4c5197322f
This commit is contained in:
Raymond Hill 2020-10-18 11:06:40 -04:00
parent 81de306666
commit 927d55134d
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 0 additions and 9 deletions

View File

@ -844,15 +844,6 @@ const onOptmizeCandidates = function(details) {
if ( r !== 0 ) { return r; }
return a.selector.length - b.selector.length;
});
// Discard selectors with same match count as shorter ones.
for ( let i = 0; i < results.length - 1; i++ ) {
const a = results[i+0];
const b = results[i+1];
if ( b.count !== a.count ) { continue; }
if ( b.selector.length === a.selector.length ) { continue; }
b.selector = a.selector;
b.count = a.count;
}
vAPI.MessagingConnection.sendTo(epickerConnectionId, {
what: 'candidatesOptimized',
candidates: results.map(a => a.selector),