- dw_variable_t current_var =
- (dw_variable_t) xbt_dynar_get_as(info->global_variables,
- cursor, dw_variable_t);
- if (strcmp(current_var->name, name) == 0) {
- xbt_dynar_remove_at(info->global_variables, cursor, NULL);
+ simgrid::mc::Variable* current_var = &info->global_variables[cursor];
+ int cmp = current_var->name.compare(name);
+ if (cmp == 0) {
+ info->global_variables.erase(
+ info->global_variables.begin() + cursor);