You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
DocData: Drop unused brief description for properties
This commit is contained in:
@@ -815,8 +815,6 @@ Error DocData::_load(Ref<XMLParser> parser) {
|
|||||||
prop.setter = parser->get_attribute_value("setter");
|
prop.setter = parser->get_attribute_value("setter");
|
||||||
if (parser->has_attribute("getter"))
|
if (parser->has_attribute("getter"))
|
||||||
prop.getter = parser->get_attribute_value("getter");
|
prop.getter = parser->get_attribute_value("getter");
|
||||||
if (parser->has_attribute("brief"))
|
|
||||||
prop.brief_description = parser->get_attribute_value("brief").xml_unescape();
|
|
||||||
if (parser->has_attribute("enum"))
|
if (parser->has_attribute("enum"))
|
||||||
prop.enumeration = parser->get_attribute_value("enum");
|
prop.enumeration = parser->get_attribute_value("enum");
|
||||||
parser->read();
|
parser->read();
|
||||||
@@ -916,11 +914,8 @@ static void _write_string(FileAccess *f, int p_tablevel, const String &p_string)
|
|||||||
|
|
||||||
Error DocData::save_classes(const String &p_default_path, const Map<String, String> &p_class_path) {
|
Error DocData::save_classes(const String &p_default_path, const Map<String, String> &p_class_path) {
|
||||||
|
|
||||||
|
|
||||||
for (Map<String, ClassDoc>::Element *E = class_list.front(); E; E = E->next()) {
|
for (Map<String, ClassDoc>::Element *E = class_list.front(); E; E = E->next()) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ClassDoc &c = E->get();
|
ClassDoc &c = E->get();
|
||||||
|
|
||||||
String save_path;
|
String save_path;
|
||||||
@@ -1031,7 +1026,7 @@ Error DocData::save_classes(const String &p_default_path, const Map<String,Strin
|
|||||||
enum_text = " enum=\"" + c.properties[i].enumeration + "\"";
|
enum_text = " enum=\"" + c.properties[i].enumeration + "\"";
|
||||||
}
|
}
|
||||||
PropertyDoc &p = c.properties[i];
|
PropertyDoc &p = c.properties[i];
|
||||||
_write_string(f, 2, "<member name=\"" + p.name + "\" type=\"" + p.type + "\" setter=\"" + p.setter + "\" getter=\"" + p.getter + "\" brief=\"" + p.brief_description.xml_escape(true) + "\"" + enum_text + ">");
|
_write_string(f, 2, "<member name=\"" + p.name + "\" type=\"" + p.type + "\" setter=\"" + p.setter + "\" getter=\"" + p.getter + "\"" + enum_text + ">");
|
||||||
if (p.description != "")
|
if (p.description != "")
|
||||||
_write_string(f, 3, p.description.xml_escape());
|
_write_string(f, 3, p.description.xml_escape());
|
||||||
_write_string(f, 2, "</member>");
|
_write_string(f, 2, "</member>");
|
||||||
@@ -1100,7 +1095,6 @@ Error DocData::save_classes(const String &p_default_path, const Map<String,Strin
|
|||||||
_write_string(f, 0, "</class>");
|
_write_string(f, 0, "</class>");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -70,7 +70,6 @@ public:
|
|||||||
String name;
|
String name;
|
||||||
String type;
|
String type;
|
||||||
String enumeration;
|
String enumeration;
|
||||||
String brief_description;
|
|
||||||
String description;
|
String description;
|
||||||
String setter, getter;
|
String setter, getter;
|
||||||
bool operator<(const PropertyDoc &p_prop) const {
|
bool operator<(const PropertyDoc &p_prop) const {
|
||||||
|
|||||||
@@ -800,18 +800,6 @@ Error EditorHelp::_goto_desc(const String &p_class, int p_vscr) {
|
|||||||
|
|
||||||
if (describe) {
|
if (describe) {
|
||||||
class_desc->pop();
|
class_desc->pop();
|
||||||
}
|
|
||||||
|
|
||||||
if (cd.properties[i].brief_description != "") {
|
|
||||||
class_desc->push_font(doc_font);
|
|
||||||
class_desc->add_text(" ");
|
|
||||||
class_desc->push_color(EditorSettings::get_singleton()->get("text_editor/highlighting/comment_color"));
|
|
||||||
_add_text(cd.properties[i].description);
|
|
||||||
class_desc->pop();
|
|
||||||
class_desc->pop();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (describe) {
|
|
||||||
property_descr = true;
|
property_descr = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user