Skip to content

Commit 75582c2

Browse files
committed
Do not hash match on license query runs
This is redundant as an automaton match pass has already been done. Signed-off-by: Philippe Ombredanne <[email protected]>
1 parent 88c55f0 commit 75582c2

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/licensedcode/index.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -526,12 +526,6 @@ def get_approximate_matches(self, query, matched_qspans=None, **kwargs):
526526

527527
for query_run in query.query_runs:
528528

529-
# per query run hash matching just in case we are lucky
530-
hash_matches = match_hash.hash_match(self, query_run)
531-
if hash_matches:
532-
matches.extend(hash_matches)
533-
continue
534-
535529
if not query_run.is_matchable(include_low=False, qspans=matched_qspans):
536530
continue
537531

0 commit comments

Comments
 (0)