Get rid of SUM_TYPE abstraction

I couldn't understand it -- maybe it was needed for something before our
refactoring too place, but now it's ridiculous.

400 SLoC + complaint about C++ => object.function()
This commit is contained in:
2026-05-27 12:40:44 +00:00
parent ff57cb8b2c
commit 0bdb599afe
6 changed files with 10 additions and 66 deletions
+2 -7
View File
@@ -295,16 +295,11 @@ void RATGDOComponent::set_distance_measurement(int16_t distance)
this->last_distance_measurement = distance;
}
Result RATGDOComponent::call_protocol(Args args)
{
return this->protocol_->call(args);
}
void RATGDOComponent::query_status() { this->protocol_->call(QueryStatus { }); }
void RATGDOComponent::query_status() { this->protocol_->query_status(); }
void RATGDOComponent::query_openings()
{
this->protocol_->call(QueryOpenings { });
this->protocol_->query_openings();
}
void RATGDOComponent::sync()