Skip to content

Commit a3cc78d

Browse files
authored
Remove Old Import Node Methods from WbLanguage (#6701)
* remove old import node methods from WbLanguage * update the changelog
1 parent d9caa65 commit a3cc78d

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

docs/reference/changelog-r2024.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@ Released on December **th, 2023.
3131
- Fixed crash when `wb_supervisor_field_get_name` was called with NULL ([#6647](https://github.com/cyberbotics/webots/pull/6647)).
3232
- Fixed bug where the wrong y coordinate was used for one corner of the box drawn to represent a box-plane collision ([#6677](https://github.com/cyberbotics/webots/pull/6677)).
3333
- Fixed a bug where Webots would crash if a geometry was inserted into a `Shape` node used a bounding box ([#6691](https://github.com/cyberbotics/webots/pull/6691)).
34+
- Removed the old `wb_supervisor_field_import_sf_node` and `wb_supervisor_field_import_mf_node` functions from the list of editor autocomplete suggestions ([#6701](https://github.com/cyberbotics/webots/pull/6701)).

src/webots/core/WbLanguage.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,9 +382,7 @@ static const char *C_API_FUNCTIONS = "wb_accelerometer_enable "
382382
"wb_supervisor_field_get_mf_rotation "
383383
"wb_supervisor_field_get_mf_string "
384384
"wb_supervisor_field_get_mf_node "
385-
"wb_supervisor_field_import_mf_node "
386385
"wb_supervisor_field_import_mf_node_from_string "
387-
"wb_supervisor_field_import_sf_node "
388386
"wb_supervisor_field_import_sf_node_from_string "
389387
"wb_supervisor_field_insert_mf_bool "
390388
"wb_supervisor_field_insert_mf_color "

src/webots/nodes/utils/WbNodeOperations.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ WbNodeOperations::OperationResult WbNodeOperations::importNode(WbNode *parentNod
117117
WbMFNode *mfnode = dynamic_cast<WbMFNode *>(field->value());
118118
assert(mfnode || sfnode);
119119
// index value is assumed to be in range [0, mfnode->size()]
120-
// user input checked in wb_supervisor_field_import_mf_node or WbSceneTree
120+
// user input checked in wb_supervisor_field_import_mf_node_from_string or WbSceneTree
121121
assert(!mfnode || (itemIndex >= 0 && itemIndex <= mfnode->size()));
122122
#endif
123123

0 commit comments

Comments
 (0)