python/gp_parse/gp_inf: remove shadowed method
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Thu, 11 Oct 2018 00:23:01 +0000 (13:23 +1300)
committerNoel Power <npower@samba.org>
Thu, 25 Oct 2018 19:45:58 +0000 (21:45 +0200)
The 'from_xml()' definition is replaced a few lines down

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Noel Power <npower@samba.org>
python/samba/gp_parse/gp_inf.py

index 4d39cb0f03a707089ee333cfc255057cdf471dc5..622b7be7e2e5bcbbecf9b8ead84ac5f5e7bcd72d 100644 (file)
@@ -186,15 +186,6 @@ class GptTmplInfParser(GPParser):
             # print line
             self.param_list.append(parameters)
 
-        def from_xml(self, section):
-            for param in section.findall('Parameter'):
-                key = param.find('Key').text
-                value = param.find('Value').text
-                if value is None:
-                    value = ''
-
-                self.param_list.append((key, value))
-
         def write_section(self, header, fp):
             if len(self.param_list) ==  0:
                 return