Remove (select) bits of unused code, as it is not typed correctly and appears to not be in use. The quickest solution is to remove it entirely.
'Match' is not defined, and neither is 'TypeInfoReference'. What these bits of code were meant to do is unclear. Signed-off-by: John Snow <js...@redhat.com> --- scripts/codeconverter/codeconverter/patching.py | 3 --- scripts/codeconverter/codeconverter/qom_type_info.py | 4 ---- 2 files changed, 7 deletions(-) diff --git a/scripts/codeconverter/codeconverter/patching.py b/scripts/codeconverter/codeconverter/patching.py index 7c3135a3e27..0165085caed 100644 --- a/scripts/codeconverter/codeconverter/patching.py +++ b/scripts/codeconverter/codeconverter/patching.py @@ -418,9 +418,6 @@ def show_diff(self) -> None: f.flush() subprocess.call(['diff', '-u', self.filename, f.name]) - def ref(self): - return TypeInfoReference - class FileList(RegexpScanner): def __init__(self): super().__init__() diff --git a/scripts/codeconverter/codeconverter/qom_type_info.py b/scripts/codeconverter/codeconverter/qom_type_info.py index d4dd6267b76..4ecdd728890 100644 --- a/scripts/codeconverter/codeconverter/qom_type_info.py +++ b/scripts/codeconverter/codeconverter/qom_type_info.py @@ -29,10 +29,6 @@ ParsedArray = List[str] ParsedInitializerValue = Union[str, ParsedArray] -class InitializerValue(NamedTuple): - raw: str - parsed: Optional[ParsedInitializerValue] - match: Optional[Match] class ArrayItem(FileMatch): regexp = RE_ARRAY_ITEM -- 2.48.1