Clean up unused code in Language (#12836)

Follow-up to #12701.
This commit is contained in:
Adriane Boyd 2023-07-18 14:10:30 +02:00 committed by GitHub
parent 6bf7c65329
commit 1509c96694
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1825,7 +1825,6 @@ class Language:
# Later we replace the component config with the raw config again.
interpolated = filled.interpolate() if not filled.is_interpolated else filled
pipeline = interpolated.get("components", {})
sourced = util.get_sourced_components(interpolated)
# If components are loaded from a source (existing models), we cache
# them here so they're only loaded once
source_nlps = {}