ENH: config: remove unused assert
jira: no-jira Change-Id: I3e2bea9f2fd5483c3a0f492bf6a1e47274315d28
This commit is contained in:
parent
ad30459c30
commit
5ddf3ac86f
|
@ -6362,7 +6362,7 @@ int DynamicPrintConfig::update_values_from_multi_to_single(DynamicPrintConfig& s
|
|||
if (src_opt) {
|
||||
ConfigOptionStrings* opt = this->option<ConfigOptionStrings>(key, true);
|
||||
|
||||
assert(variant_count == opt->size());
|
||||
//assert(variant_count == opt->size());
|
||||
opt->values = src_opt->values;
|
||||
}
|
||||
break;
|
||||
|
@ -6373,7 +6373,7 @@ int DynamicPrintConfig::update_values_from_multi_to_single(DynamicPrintConfig& s
|
|||
if (src_opt) {
|
||||
ConfigOptionInts* opt = this->option<ConfigOptionInts>(key, true);
|
||||
|
||||
assert(variant_count == opt->size());
|
||||
//assert(variant_count == opt->size());
|
||||
opt->values = src_opt->values;
|
||||
}
|
||||
break;
|
||||
|
@ -6387,7 +6387,7 @@ int DynamicPrintConfig::update_values_from_multi_to_single(DynamicPrintConfig& s
|
|||
std::vector<double> old_values = opt->values;
|
||||
int old_count = old_values.size();
|
||||
|
||||
assert(variant_count == opt->size());
|
||||
//assert(variant_count == opt->size());
|
||||
opt->values = src_opt->values;
|
||||
|
||||
for (int i = 0; i < extruder_count; i++)
|
||||
|
@ -6408,7 +6408,7 @@ int DynamicPrintConfig::update_values_from_multi_to_single(DynamicPrintConfig& s
|
|||
std::vector<FloatOrPercent> old_values = opt->values;
|
||||
int old_count = old_values.size();
|
||||
|
||||
assert(variant_count == opt->size());
|
||||
//assert(variant_count == opt->size());
|
||||
opt->values = src_opt->values;
|
||||
|
||||
for (int i = 0; i < extruder_count; i++)
|
||||
|
@ -6426,7 +6426,7 @@ int DynamicPrintConfig::update_values_from_multi_to_single(DynamicPrintConfig& s
|
|||
if (src_opt) {
|
||||
ConfigOptionBools* opt = this->option<ConfigOptionBools>(key, true);
|
||||
|
||||
assert(variant_count == opt->size());
|
||||
//assert(variant_count == opt->size());
|
||||
opt->values = src_opt->values;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue