Skip to content

Commit

Permalink
Backported: Doctool: Remove version attribute from XML header
Browse files Browse the repository at this point in the history
  • Loading branch information
Relintai committed Sep 20, 2024
1 parent 5b6ee7f commit 833d869
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion doc/class.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@
<xs:attribute type="xs:string" name="name" />
<xs:attribute type="xs:string" name="inherits" />
<xs:attribute type="xs:string" name="category" />
<xs:attribute type="xs:float" name="version" />
</xs:complexType>
</xs:element>
</xs:schema>
4 changes: 0 additions & 4 deletions doc/tools/make_rst.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,10 +489,6 @@ def main() -> None:
continue
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"]
if name in classes:
print_error(f'{cur_file}: Duplicate class "{name}".', state)
Expand Down
1 change: 0 additions & 1 deletion editor/doc/doc_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1119,7 +1119,6 @@ Error DocData::save_classes(const String &p_default_path, const RBMap<String, St
if (c.inherits != "") {
header += " inherits=\"" + c.inherits + "\"";
}
header += String(" version=\"") + VERSION_BRANCH + "\"";
header += ">";
_write_string(f, 0, header);

Expand Down

0 comments on commit 833d869

Please sign in to comment.