mirror of
https://github.com/esphome/esphome.git
synced 2026-09-16 01:28:39 +00:00
[api] Remove ProtoService base class
ProtoService was an abstract interface with 6 pure virtual methods, but APIConnection was the only concrete implementation. Move all functionality directly into APIConnection and remove the unnecessary virtual dispatch and vtable overhead.
This commit is contained in:
@@ -2958,7 +2958,7 @@ static const char *const TAG = "api.service";
|
||||
|
||||
class_name = "APIServerConnectionBase"
|
||||
|
||||
hpp += f"class {class_name} : public ProtoService {{\n"
|
||||
hpp += f"class {class_name} {{\n"
|
||||
hpp += " public:\n"
|
||||
|
||||
# Add logging helper method declarations
|
||||
|
||||
Reference in New Issue
Block a user