Backported: Doctool: Remove version attribute from XML header.

Doctool: Remove version attribute from XML header

We don't use that info for anything, and it generates unnecessary diffs
every time we bump the minor version (and CI failures if we forget to
sync some files from opt-in modules (mono, text_server_fb).

- akien-mga

32ddd4f4e0
This commit is contained in:
Relintai 2024-09-20 08:59:08 +02:00
parent 5b6ee7f500
commit 8a4da4c157
3 changed files with 0 additions and 6 deletions

View File

@ -148,7 +148,6 @@
<xs:attribute type="xs:string" name="name" /> <xs:attribute type="xs:string" name="name" />
<xs:attribute type="xs:string" name="inherits" /> <xs:attribute type="xs:string" name="inherits" />
<xs:attribute type="xs:string" name="category" /> <xs:attribute type="xs:string" name="category" />
<xs:attribute type="xs:float" name="version" />
</xs:complexType> </xs:complexType>
</xs:element> </xs:element>
</xs:schema> </xs:schema>

View File

@ -489,10 +489,6 @@ def main() -> None:
continue continue
doc = tree.getroot() doc = tree.getroot()
if "version" not in doc.attrib:
print_error(f'{cur_file}: "version" attribute missing from "doc".', state)
continue
name = doc.attrib["name"] name = doc.attrib["name"]
if name in classes: if name in classes:
print_error(f'{cur_file}: Duplicate class "{name}".', state) print_error(f'{cur_file}: Duplicate class "{name}".', state)

View File

@ -1119,7 +1119,6 @@ Error DocData::save_classes(const String &p_default_path, const RBMap<String, St
if (c.inherits != "") { if (c.inherits != "") {
header += " inherits=\"" + c.inherits + "\""; header += " inherits=\"" + c.inherits + "\"";
} }
header += String(" version=\"") + VERSION_BRANCH + "\"";
header += ">"; header += ">";
_write_string(f, 0, header); _write_string(f, 0, header);