diff --git a/Tools/autotest/param_metadata/ednemit.py b/Tools/autotest/param_metadata/ednemit.py index d024e13a5d..2989381c83 100644 --- a/Tools/autotest/param_metadata/ednemit.py +++ b/Tools/autotest/param_metadata/ednemit.py @@ -49,6 +49,9 @@ class EDNEmit(Emit): # remove any keys we don't really care to share for key in self.remove_keys: output_dict.pop(key, None) + for key in list(output_dict.keys()): + if not self.should_emit_field(param, key): + output_dict.pop(key, None) # rearrange bitmasks to be a vector with nil's if the bit doesn't have meaning if "bitmask" in output_dict: diff --git a/Tools/autotest/param_metadata/emit.py b/Tools/autotest/param_metadata/emit.py index 6bffd455d4..daad4bbfc5 100644 --- a/Tools/autotest/param_metadata/emit.py +++ b/Tools/autotest/param_metadata/emit.py @@ -19,3 +19,6 @@ class Emit: def emit(self, g): pass + + def should_emit_field(self, param, field): + return field not in ['Legacy'] diff --git a/Tools/autotest/param_metadata/htmlemit.py b/Tools/autotest/param_metadata/htmlemit.py index 201a13ef9a..1f3a26bb29 100644 --- a/Tools/autotest/param_metadata/htmlemit.py +++ b/Tools/autotest/param_metadata/htmlemit.py @@ -65,6 +65,8 @@ DO NOT EDIT t += "