Skip to content

Commit

Permalink
Remove unused kids from qlocalexml.py
Browse files Browse the repository at this point in the history
These are probably remnants of times forgotten.

Task-number: QTBUG-129564
Pick-to: 6.8
Change-Id: Ic3ec03201758801e341253cd82ab8034f7fde9b7
Reviewed-by: Edward Welbourne <[email protected]>
  • Loading branch information
Mate Barany committed Oct 29, 2024
1 parent 4e1b208 commit d298a70
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions util/locale_database/qlocalexml.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ def msLandIanas(self):
yield kid(elt, 'msid'), land, kid(elt, 'ianaids')

def territoryZone(self):
kid = self.__firstChildText
for elt in self.__eachEltInGroup(self.root, 'landZones', 'landZone'):
iana, land = self.__textThenAttrs(elt, 'territory')
yield land, iana
Expand Down Expand Up @@ -308,7 +307,6 @@ def __loadMap(self, category, enum):
code, name) where id and enum are the enumdata numeric index and name
(on which the QLocale enums are based), code is the ISO code and name
is CLDR's en.xml name for the language, script or territory."""
kid = self.__firstChildText
for element in self.__eachEltInGroup(self.root, f'{category}List', 'naming'):
name, key, code = self.__textThenAttrs(element, 'id', 'code')
key = int(key)
Expand Down

0 comments on commit d298a70

Please sign in to comment.