From 32f2c473565027a8bd33ccc1147d5a0249029db0 Mon Sep 17 00:00:00 2001 From: Yuri Roubinsky Date: Mon, 14 Mar 2022 22:07:26 +0300 Subject: Remove generating of null comparison operators from documentation --- doc/classes/AABB.xml | 10 ---------- doc/classes/Array.xml | 10 ---------- doc/classes/Basis.xml | 10 ---------- doc/classes/Callable.xml | 10 ---------- doc/classes/Color.xml | 10 ---------- doc/classes/Dictionary.xml | 10 ---------- doc/classes/NodePath.xml | 10 ---------- doc/classes/PackedByteArray.xml | 10 ---------- doc/classes/PackedColorArray.xml | 10 ---------- doc/classes/PackedFloat32Array.xml | 10 ---------- doc/classes/PackedFloat64Array.xml | 10 ---------- doc/classes/PackedInt32Array.xml | 10 ---------- doc/classes/PackedInt64Array.xml | 10 ---------- doc/classes/PackedStringArray.xml | 10 ---------- doc/classes/PackedVector2Array.xml | 10 ---------- doc/classes/PackedVector3Array.xml | 10 ---------- doc/classes/Plane.xml | 10 ---------- doc/classes/Quaternion.xml | 10 ---------- doc/classes/RID.xml | 10 ---------- doc/classes/Rect2.xml | 10 ---------- doc/classes/Rect2i.xml | 10 ---------- doc/classes/Signal.xml | 10 ---------- doc/classes/String.xml | 10 ---------- doc/classes/StringName.xml | 10 ---------- doc/classes/Transform2D.xml | 10 ---------- doc/classes/Transform3D.xml | 10 ---------- doc/classes/Vector2.xml | 10 ---------- doc/classes/Vector2i.xml | 10 ---------- doc/classes/Vector3.xml | 10 ---------- doc/classes/Vector3i.xml | 10 ---------- doc/classes/bool.xml | 11 ----------- doc/classes/float.xml | 10 ---------- doc/classes/int.xml | 10 ---------- editor/doc_tools.cpp | 5 +++++ 34 files changed, 5 insertions(+), 331 deletions(-) diff --git a/doc/classes/AABB.xml b/doc/classes/AABB.xml index 6e4a4a2145..db880efaf2 100644 --- a/doc/classes/AABB.xml +++ b/doc/classes/AABB.xml @@ -226,11 +226,6 @@ - - - - - @@ -246,11 +241,6 @@ Inversely transforms (multiplies) the [AABB] by the given [Transform3D] transformation matrix. - - - - - diff --git a/doc/classes/Array.xml b/doc/classes/Array.xml index 6852fb5228..68cb615209 100644 --- a/doc/classes/Array.xml +++ b/doc/classes/Array.xml @@ -509,11 +509,6 @@ - - - - - @@ -538,11 +533,6 @@ - - - - - diff --git a/doc/classes/Basis.xml b/doc/classes/Basis.xml index f31e962632..3b703884a5 100644 --- a/doc/classes/Basis.xml +++ b/doc/classes/Basis.xml @@ -223,11 +223,6 @@ - - - - - @@ -264,11 +259,6 @@ This operator multiplies all components of the [Basis], which scales it uniformly. - - - - - diff --git a/doc/classes/Callable.xml b/doc/classes/Callable.xml index 7c7e37d0a5..efe3e3d091 100644 --- a/doc/classes/Callable.xml +++ b/doc/classes/Callable.xml @@ -148,11 +148,6 @@ - - - - - @@ -160,11 +155,6 @@ Returns [code]true[/code] if both [Callable]s invoke different targets. - - - - - diff --git a/doc/classes/Color.xml b/doc/classes/Color.xml index bc0baf42c9..7083157081 100644 --- a/doc/classes/Color.xml +++ b/doc/classes/Color.xml @@ -913,11 +913,6 @@ - - - - - @@ -982,11 +977,6 @@ Divides each component of the [Color] by the given [int]. - - - - - diff --git a/doc/classes/Dictionary.xml b/doc/classes/Dictionary.xml index ab04366eb7..8ee09ba8f8 100644 --- a/doc/classes/Dictionary.xml +++ b/doc/classes/Dictionary.xml @@ -305,22 +305,12 @@ - - - - - - - - - - diff --git a/doc/classes/NodePath.xml b/doc/classes/NodePath.xml index 7d5e844550..3319e5d822 100644 --- a/doc/classes/NodePath.xml +++ b/doc/classes/NodePath.xml @@ -171,22 +171,12 @@ - - - - - - - - - - diff --git a/doc/classes/PackedByteArray.xml b/doc/classes/PackedByteArray.xml index be51b1dcf8..a0e67bfa63 100644 --- a/doc/classes/PackedByteArray.xml +++ b/doc/classes/PackedByteArray.xml @@ -416,11 +416,6 @@ - - - - - @@ -433,11 +428,6 @@ - - - - - diff --git a/doc/classes/PackedColorArray.xml b/doc/classes/PackedColorArray.xml index f98c5c37e4..d1a00b32b1 100644 --- a/doc/classes/PackedColorArray.xml +++ b/doc/classes/PackedColorArray.xml @@ -152,11 +152,6 @@ - - - - - @@ -169,11 +164,6 @@ - - - - - diff --git a/doc/classes/PackedFloat32Array.xml b/doc/classes/PackedFloat32Array.xml index 393af5f6c4..b351058346 100644 --- a/doc/classes/PackedFloat32Array.xml +++ b/doc/classes/PackedFloat32Array.xml @@ -155,11 +155,6 @@ - - - - - @@ -172,11 +167,6 @@ - - - - - diff --git a/doc/classes/PackedFloat64Array.xml b/doc/classes/PackedFloat64Array.xml index 5a80d7b2e9..b4ffa295bd 100644 --- a/doc/classes/PackedFloat64Array.xml +++ b/doc/classes/PackedFloat64Array.xml @@ -155,11 +155,6 @@ - - - - - @@ -172,11 +167,6 @@ - - - - - diff --git a/doc/classes/PackedInt32Array.xml b/doc/classes/PackedInt32Array.xml index 17085a9626..b34deb518a 100644 --- a/doc/classes/PackedInt32Array.xml +++ b/doc/classes/PackedInt32Array.xml @@ -155,11 +155,6 @@ - - - - - @@ -172,11 +167,6 @@ - - - - - diff --git a/doc/classes/PackedInt64Array.xml b/doc/classes/PackedInt64Array.xml index 066bc05f54..6a99db778c 100644 --- a/doc/classes/PackedInt64Array.xml +++ b/doc/classes/PackedInt64Array.xml @@ -155,11 +155,6 @@ - - - - - @@ -172,11 +167,6 @@ - - - - - diff --git a/doc/classes/PackedStringArray.xml b/doc/classes/PackedStringArray.xml index 3cf43ecb28..29c72f62de 100644 --- a/doc/classes/PackedStringArray.xml +++ b/doc/classes/PackedStringArray.xml @@ -153,11 +153,6 @@ - - - - - @@ -170,11 +165,6 @@ - - - - - diff --git a/doc/classes/PackedVector2Array.xml b/doc/classes/PackedVector2Array.xml index 9abc366702..cd78f29595 100644 --- a/doc/classes/PackedVector2Array.xml +++ b/doc/classes/PackedVector2Array.xml @@ -153,11 +153,6 @@ - - - - - @@ -176,11 +171,6 @@ - - - - - diff --git a/doc/classes/PackedVector3Array.xml b/doc/classes/PackedVector3Array.xml index ff9fc6a757..9ae4073fdf 100644 --- a/doc/classes/PackedVector3Array.xml +++ b/doc/classes/PackedVector3Array.xml @@ -152,11 +152,6 @@ - - - - - @@ -175,11 +170,6 @@ - - - - - diff --git a/doc/classes/Plane.xml b/doc/classes/Plane.xml index f037b0bf1e..a42ceba777 100644 --- a/doc/classes/Plane.xml +++ b/doc/classes/Plane.xml @@ -171,11 +171,6 @@ - - - - - @@ -184,11 +179,6 @@ [b]Note:[/b] Due to floating-point precision errors, consider using [method is_equal_approx] instead, which is more reliable. - - - - - diff --git a/doc/classes/Quaternion.xml b/doc/classes/Quaternion.xml index c94b649b58..8a440d9024 100644 --- a/doc/classes/Quaternion.xml +++ b/doc/classes/Quaternion.xml @@ -186,11 +186,6 @@ - - - - - @@ -255,11 +250,6 @@ Divides each component of the [Quaternion] by the given value. This operation is not meaningful on its own, but it can be used as a part of a larger expression. - - - - - diff --git a/doc/classes/RID.xml b/doc/classes/RID.xml index 6888c1f56c..39be605e1b 100644 --- a/doc/classes/RID.xml +++ b/doc/classes/RID.xml @@ -38,11 +38,6 @@ - - - - - @@ -61,11 +56,6 @@ - - - - - diff --git a/doc/classes/Rect2.xml b/doc/classes/Rect2.xml index a975382bfa..e4b66a9d53 100644 --- a/doc/classes/Rect2.xml +++ b/doc/classes/Rect2.xml @@ -187,11 +187,6 @@ - - - - - @@ -207,11 +202,6 @@ Inversely transforms (multiplies) the [Rect2] by the given [Transform2D] transformation matrix. - - - - - diff --git a/doc/classes/Rect2i.xml b/doc/classes/Rect2i.xml index 49fdd8e7e8..c9ae685a15 100644 --- a/doc/classes/Rect2i.xml +++ b/doc/classes/Rect2i.xml @@ -176,11 +176,6 @@ - - - - - @@ -188,11 +183,6 @@ Returns [code]true[/code] if the rectangles are not equal. - - - - - diff --git a/doc/classes/Signal.xml b/doc/classes/Signal.xml index 1b67900607..c5855e30a4 100644 --- a/doc/classes/Signal.xml +++ b/doc/classes/Signal.xml @@ -97,22 +97,12 @@ - - - - - - - - - - diff --git a/doc/classes/String.xml b/doc/classes/String.xml index d85e521f08..ea0bd2adb1 100644 --- a/doc/classes/String.xml +++ b/doc/classes/String.xml @@ -863,11 +863,6 @@ - - - - - @@ -904,11 +899,6 @@ - - - - - diff --git a/doc/classes/StringName.xml b/doc/classes/StringName.xml index ee76c8abcc..ffa1227500 100644 --- a/doc/classes/StringName.xml +++ b/doc/classes/StringName.xml @@ -33,11 +33,6 @@ - - - - - @@ -62,11 +57,6 @@ - - - - - diff --git a/doc/classes/Transform2D.xml b/doc/classes/Transform2D.xml index 6c0c3032ec..3ad21ee809 100644 --- a/doc/classes/Transform2D.xml +++ b/doc/classes/Transform2D.xml @@ -204,11 +204,6 @@ - - - - - @@ -259,11 +254,6 @@ This operator multiplies all components of the [Transform2D], including the origin vector, which scales it uniformly. - - - - - diff --git a/doc/classes/Transform3D.xml b/doc/classes/Transform3D.xml index 67e70f30e4..5a72dc223c 100644 --- a/doc/classes/Transform3D.xml +++ b/doc/classes/Transform3D.xml @@ -146,11 +146,6 @@ - - - - - @@ -201,11 +196,6 @@ This operator multiplies all components of the [Transform3D], including the origin vector, which scales it uniformly. - - - - - diff --git a/doc/classes/Vector2.xml b/doc/classes/Vector2.xml index a39ddb8187..f9ef126658 100644 --- a/doc/classes/Vector2.xml +++ b/doc/classes/Vector2.xml @@ -357,11 +357,6 @@ - - - - - @@ -459,11 +454,6 @@ Compares two [Vector2] vectors by first checking if the X value of the left vector is less than or equal to the X value of the [code]right[/code] vector. If the X values are exactly equal, then it repeats this check with the Y values of the two vectors. This operator is useful for sorting vectors. - - - - - diff --git a/doc/classes/Vector2i.xml b/doc/classes/Vector2i.xml index 9b41e01c25..28d68b6e44 100644 --- a/doc/classes/Vector2i.xml +++ b/doc/classes/Vector2i.xml @@ -131,11 +131,6 @@ - - - - - @@ -251,11 +246,6 @@ Compares two [Vector2i] vectors by first checking if the X value of the left vector is less than or equal to the X value of the [code]right[/code] vector. If the X values are exactly equal, then it repeats this check with the Y values of the two vectors. This operator is useful for sorting vectors. - - - - - diff --git a/doc/classes/Vector3.xml b/doc/classes/Vector3.xml index ec695f41c1..1653b66003 100644 --- a/doc/classes/Vector3.xml +++ b/doc/classes/Vector3.xml @@ -358,11 +358,6 @@ - - - - - @@ -474,11 +469,6 @@ Compares two [Vector3] vectors by first checking if the X value of the left vector is less than or equal to the X value of the [code]right[/code] vector. If the X values are exactly equal, then it repeats this check with the Y values of the two vectors, and then with the Z values. This operator is useful for sorting vectors. - - - - - diff --git a/doc/classes/Vector3i.xml b/doc/classes/Vector3i.xml index e486d7cfec..4c7f3badc5 100644 --- a/doc/classes/Vector3i.xml +++ b/doc/classes/Vector3i.xml @@ -138,11 +138,6 @@ - - - - - @@ -258,11 +253,6 @@ Compares two [Vector3i] vectors by first checking if the X value of the left vector is less than or equal to the X value of the [code]right[/code] vector. If the X values are exactly equal, then it repeats this check with the Y values of the two vectors, and then with the Z values. This operator is useful for sorting vectors. - - - - - diff --git a/doc/classes/bool.xml b/doc/classes/bool.xml index 6b1243b8c0..374b703636 100644 --- a/doc/classes/bool.xml +++ b/doc/classes/bool.xml @@ -121,11 +121,6 @@ - - - - - @@ -140,12 +135,6 @@ Returns [code]true[/code] if the left operand is [code]false[/code] and the right operand is [code]true[/code]. - - - - Returns [code]true[/code] if two bools are equal, i.e. both are [code]true[/code] or both are [code]false[/code]. - - diff --git a/doc/classes/float.xml b/doc/classes/float.xml index 1fe234c567..50961f9c7f 100644 --- a/doc/classes/float.xml +++ b/doc/classes/float.xml @@ -42,11 +42,6 @@ - - - - - @@ -199,11 +194,6 @@ Returns [code]true[/code] if this [float] is less than or equal to the given [int]. - - - - - diff --git a/doc/classes/int.xml b/doc/classes/int.xml index eac7ee8dfd..609291b69c 100644 --- a/doc/classes/int.xml +++ b/doc/classes/int.xml @@ -68,11 +68,6 @@ - - - - - @@ -271,11 +266,6 @@ Returns [code]true[/code] the left integer is less than or equal to the right one. - - - - - diff --git a/editor/doc_tools.cpp b/editor/doc_tools.cpp index a9d18e9dcc..adad8fdba8 100644 --- a/editor/doc_tools.cpp +++ b/editor/doc_tools.cpp @@ -685,6 +685,11 @@ void DocTools::generate(bool p_basic_types) { for (int j = 0; j < Variant::OP_AND; j++) { // Showing above 'and' is pretty confusing and there are a lot of variations. for (int k = 0; k < Variant::VARIANT_MAX; k++) { + // Prevent generating for comparison with null. + if (Variant::Type(k) == Variant::NIL && (Variant::Operator(j) == Variant::OP_EQUAL || Variant::Operator(j) == Variant::OP_NOT_EQUAL)) { + continue; + } + Variant::Type rt = Variant::get_operator_return_type(Variant::Operator(j), Variant::Type(i), Variant::Type(k)); if (rt != Variant::NIL) { // Has operator. // Skip String % operator as it's registered separately for each Variant arg type, -- cgit v1.2.3