Skip to content
Snippets Groups Projects
Commit 63e24179 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

removed a method never used!

parent 0bee714a
No related branches found
No related tags found
No related merge requests found
...@@ -135,21 +135,6 @@ class AMQPMethodPayload(AMQPPayload): ...@@ -135,21 +135,6 @@ class AMQPMethodPayload(AMQPPayload):
REPLY_WITH = [] REPLY_WITH = []
FIELDS = [] FIELDS = []
def write_to(self, buf):
"""
Write own content to target buffer - starting from LENGTH, ending on FRAME_END
:param buf: target buffer
"""
from coolamqp.framing.definitions import FRAME_END_BYTE
if self.IS_CONTENT_STATIC:
buf.write(self.STATIC_CONTENT)
else:
buf.write(struct.pack('!I', self.get_size() + 2))
buf.write(self.BINARY_HEADER)
self.write_arguments(buf)
buf.write(FRAME_END_BYTE)
def get_size(self): def get_size(self):
""" """
Calculate the size of this frame. Calculate the size of this frame.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment