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).

(cherry picked from commit 81064cc239)
This commit is contained in:
Rémi Verschelde
2023-07-06 10:08:05 +02:00
parent 5e0f2375e9
commit 32ddd4f4e0
717 changed files with 714 additions and 720 deletions

View File

@@ -1100,7 +1100,6 @@ Error DocData::save_classes(const String &p_default_path, const Map<String, Stri
if (c.inherits != "") {
header += " inherits=\"" + c.inherits + "\"";
}
header += String(" version=\"") + VERSION_BRANCH + "\"";
// Reference the XML schema so editors can provide error checking.
// Modules are nested deep, so change the path to reference the same schema everywhere.
const String schema_path = save_path.find("modules/") != -1 ? "../../../doc/class.xsd" : "../class.xsd";