From 453c5ef6823174aa464c23e0aca3b1f2f00f9bc1 Mon Sep 17 00:00:00 2001 From: Danil Alexeev Date: Sat, 24 Sep 2022 18:13:44 +0300 Subject: [PATCH] Remove confusing `String + int` and `int + String` operations --- core/variant/variant_op.cpp | 2 -- doc/classes/String.xml | 6 ------ doc/classes/int.xml | 7 ------- 3 files changed, 15 deletions(-) diff --git a/core/variant/variant_op.cpp b/core/variant/variant_op.cpp index 6cca7955ae7..5726a15a703 100644 --- a/core/variant/variant_op.cpp +++ b/core/variant/variant_op.cpp @@ -240,8 +240,6 @@ void Variant::_register_variant_operators() { register_op>(Variant::OP_ADD, Variant::FLOAT, Variant::INT); register_op>(Variant::OP_ADD, Variant::FLOAT, Variant::FLOAT); register_op>(Variant::OP_ADD, Variant::STRING, Variant::STRING); - register_op>(Variant::OP_ADD, Variant::INT, Variant::STRING); - register_op>(Variant::OP_ADD, Variant::STRING, Variant::INT); register_op>(Variant::OP_ADD, Variant::VECTOR2, Variant::VECTOR2); register_op>(Variant::OP_ADD, Variant::VECTOR2I, Variant::VECTOR2I); register_op>(Variant::OP_ADD, Variant::VECTOR3, Variant::VECTOR3); diff --git a/doc/classes/String.xml b/doc/classes/String.xml index 316bb923b79..a9858edfff5 100644 --- a/doc/classes/String.xml +++ b/doc/classes/String.xml @@ -940,12 +940,6 @@ - - - - - - diff --git a/doc/classes/int.xml b/doc/classes/int.xml index 78e2e7d18f9..33f0e70df62 100644 --- a/doc/classes/int.xml +++ b/doc/classes/int.xml @@ -195,13 +195,6 @@ - - - - - Adds Unicode character with code [int] to the [String]. - -