[Spice-devel] [spice-common 2/3] codegen: Remove unused write_message_marshaller argument

Christophe Fergeau cfergeau at redhat.com
Mon Jun 20 15:06:24 UTC 2016


"is_server" is not used in this method
---
 python_modules/marshal.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/python_modules/marshal.py b/python_modules/marshal.py
index 1d38d3d..cc6cbdf 100644
--- a/python_modules/marshal.py
+++ b/python_modules/marshal.py
@@ -333,7 +333,7 @@ def write_container_marshaller(writer, container, src):
             writer.out_prefix = saved_out_prefix
             write_member_marshaller(writer, container, m, src, scope)
 
-def write_message_marshaller(writer, message, is_server, private):
+def write_message_marshaller(writer, message, private):
     if message.has_attr("ifdef"):
         writer.ifdef(message.attributes["ifdef"][0])
     writer.out_prefix = ""
@@ -385,7 +385,7 @@ def write_protocol_marshaller(writer, proto, is_server, private_marshallers):
             messages = channel.server_messages
         for m in messages:
             message = m.message_type
-            f = write_message_marshaller(writer, message, is_server, private_marshallers)
+            f = write_message_marshaller(writer, message, private_marshallers)
             if channel.has_attr("ifdef") and f not in functions:
                 functions[f] = channel.attributes["ifdef"][0]
             elif message.has_attr("ifdef") and f not in functions:
-- 
2.7.4



More information about the Spice-devel mailing list