From d298a706ba42c4516c59aa63f35011f10f23cbbe Mon Sep 17 00:00:00 2001 From: Mate Barany Date: Tue, 15 Oct 2024 16:37:35 +0200 Subject: [PATCH] Remove unused kids from qlocalexml.py These are probably remnants of times forgotten. Task-number: QTBUG-129564 Pick-to: 6.8 Change-Id: Ic3ec03201758801e341253cd82ab8034f7fde9b7 Reviewed-by: Edward Welbourne --- util/locale_database/qlocalexml.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/util/locale_database/qlocalexml.py b/util/locale_database/qlocalexml.py index 2e0d46cd4a3..6d1a167fd52 100644 --- a/util/locale_database/qlocalexml.py +++ b/util/locale_database/qlocalexml.py @@ -196,7 +196,6 @@ class QLocaleXmlReader (object): 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 @@ -308,7 +307,6 @@ class QLocaleXmlReader (object): 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)