LibIPC+IPCCompiler: Remove some unused members from generated messages

This commit is contained in:
Andreas Kling 2020-02-15 11:16:45 +01:00
parent 20d9c431ce
commit ef01af1cb2
2 changed files with 2 additions and 4 deletions

View file

@ -294,11 +294,9 @@ int main(int argc, char** argv)
dbg() << " " << constructor_for_message(name, parameters);
dbg() << " virtual ~" << name << "() override {}";
dbg() << " virtual i32 endpoint_magic() const override { return " << endpoint.magic << "; }";
dbg() << " static i32 static_endpoint_magic() { return " << endpoint.magic << "; }";
dbg() << " virtual i32 message_id() const override { return (int)MessageID::" << name << "; }";
dbg() << " static i32 static_message_id() { return (int)MessageID::" << name << "; }";
dbg() << " virtual String message_name() const override { return \"" << endpoint.name << "::" << name << "\"; }";
dbg() << " static String static_message_name() { return \"" << endpoint.name << "::" << name << "\"; }";
dbg() << " virtual const char* message_name() const override { return \"" << endpoint.name << "::" << name << "\"; }";
dbg() << " static OwnPtr<" << name << "> decode(BufferStream& stream, size_t& size_in_bytes)";
dbg() << " {";

View file

@ -38,7 +38,7 @@ public:
virtual int endpoint_magic() const = 0;
virtual int message_id() const = 0;
virtual String message_name() const = 0;
virtual const char* message_name() const = 0;
virtual MessageBuffer encode() const = 0;
protected: