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 -3
View File
@@ -35,8 +35,7 @@ typedef Parented<RATGDOComponent> RATGDOClient;
const float DOOR_POSITION_UNKNOWN = -1.0;
const float DOOR_DELTA_UNKNOWN = -2.0;
using protocol::Args;
using protocol::Result;
class RATGDOComponent : public Component {
public:
@@ -83,7 +82,7 @@ public:
void set_output_gdo_pin(InternalGPIOPin* pin) { this->output_gdo_pin_ = pin; }
void set_input_gdo_pin(InternalGPIOPin* pin) { this->input_gdo_pin_ = pin; }
Result call_protocol(Args args);
void received(const DoorState door_state);
void received(const LightState light_state);