Skip to content

Commit eecd896

Browse files
committed
Remove unused method
Signed-off-by: Philippe Ombredanne <[email protected]>
1 parent 7417bc6 commit eecd896

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/licensedcode/detection.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1317,22 +1317,6 @@ def get_undetected_matches(query_string):
13171317
set_matched_lines(matches, query.line_by_pos)
13181318
return matches
13191319

1320-
1321-
def get_matches_from_detections(license_detections):
1322-
"""
1323-
Return a ``license_matches`` list of LicenseMatch objects from a
1324-
`license_detections` list of LicenseDetection objects.
1325-
"""
1326-
license_matches = []
1327-
if not license_detections:
1328-
return license_matches
1329-
1330-
for detection in license_detections:
1331-
license_matches.extend(detection.matches)
1332-
1333-
return license_matches
1334-
1335-
13361320
def get_matches_from_detection_mappings(license_detections):
13371321
"""
13381322
Return a ``license_matches`` list of LicenseMatch mappings from a

0 commit comments

Comments
 (0)