Remove unused parameters, variables from cldr.py and ldml.py

Found these while adding type annotations.

Task-number: QTBUG-129566
Pick-to: 6.8
Change-Id: I51c8e5676f958094946c0e6f396b98c083fd9de0
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
This commit is contained in:
Mate Barany 2024-10-07 13:31:01 +02:00
parent 2201b54ee3
commit ba9d6b261b
2 changed files with 3 additions and 3 deletions

View File

@ -292,7 +292,7 @@ class CldrReader (object):
currencyRounding = int(rounding)) currencyRounding = int(rounding))
locale.update(scan.currencyData(iso)) locale.update(scan.currencyData(iso))
locale.update(scan.numericData(self.root.numberSystem, self.whitter)) locale.update(scan.numericData(self.root.numberSystem))
locale.update(scan.textPatternData()) locale.update(scan.textPatternData())
locale.update(scan.endonyms(language, script, territory, variant)) locale.update(scan.endonyms(language, script, territory, variant))
locale.update(scan.unitData()) # byte, kB, MB, GB, ..., KiB, MiB, GiB, ... locale.update(scan.unitData()) # byte, kB, MB, GB, ..., KiB, MiB, GiB, ...

View File

@ -270,7 +270,7 @@ class LocaleScanner (object):
yield 'currencySymbol', symbol yield 'currencySymbol', symbol
yield 'currencyDisplayName', name yield 'currencyDisplayName', name
def numericData(self, lookup, complain = lambda text: None): def numericData(self, lookup):
"""Generate assorted numeric data for the locale. """Generate assorted numeric data for the locale.
First argument, lookup, is a callable that maps a numbering First argument, lookup, is a callable that maps a numbering
@ -436,7 +436,7 @@ class LocaleScanner (object):
See CldrAccess.readMetaZoneMap() for the locale-independent See CldrAccess.readMetaZoneMap() for the locale-independent
data that stitches these pieces together.""" data that stitches these pieces together."""
stem, formats = 'dates/timeZoneNames', {} stem = 'dates/timeZoneNames'
# '+HH:mm;-HH:mm' (and :ss is also supported, but nowhere used in v45). # '+HH:mm;-HH:mm' (and :ss is also supported, but nowhere used in v45).
# Sometimes has single-digit hours # Sometimes has single-digit hours
hours = self.find(f'{stem}/hourFormat').split(';') hours = self.find(f'{stem}/hourFormat').split(';')