summaryrefslogtreecommitdiff
path: root/codegen.py
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@lshift.net>2010-01-29 14:12:09 +0000
committerMatthew Sackman <matthew@lshift.net>2010-01-29 14:12:09 +0000
commit76de2544ad74b63db5b9f09e7f7b711a30a6bb1a (patch)
treecd6b4241144327cdeafd097f2bfecb80f6754cfa /codegen.py
parentcb5d035c3731285e26687d7455e64ad00c2a0cfd (diff)
downloadrabbitmq-server-git-76de2544ad74b63db5b9f09e7f7b711a30a6bb1a.tar.gz
Remove the response verification as errors should cause the channel or connection to be closed
Diffstat (limited to 'codegen.py')
-rw-r--r--codegen.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/codegen.py b/codegen.py
index ece768a9dd..4455973162 100644
--- a/codegen.py
+++ b/codegen.py
@@ -166,14 +166,6 @@ def genErl(spec):
def genMethodFieldNames(m):
print "method_fieldnames(%s) -> %s;" % (m.erlangName(), fieldNameList(m.arguments))
- def genMethodCallResponse(m, methods):
- if not m.erlangName().endswith("_ok'"):
- responseName = "'" + erlangize(m.klass.name) + '.' + erlangize(m.name) + "_ok'"
- filtered = filter(lambda n: n.erlangName() == responseName, methods)
- if len(filtered) == 1:
- print "method_call_and_response(#%s{}, #%s{}) -> true;" % (m.erlangName(),
- responseName)
-
def packMethodFields(fields):
packed = []
bitfield = None
@@ -307,7 +299,6 @@ def genErl(spec):
-export([is_method_synchronous/1]).
-export([method_record/1]).
-export([method_fieldnames/1]).
--export([method_call_and_response/2]).
-export([decode_method_fields/2]).
-export([decode_properties/2]).
-export([encode_method_fields/1]).
@@ -337,9 +328,6 @@ bitvalue(undefined) -> 0.
for m in methods: genMethodFieldNames(m)
print "method_fieldnames(Name) -> exit({unknown_method_name, Name})."
- for m in methods: genMethodCallResponse(m, methods)
- print "method_call_and_response(_Call, _Response) -> false."
-
for m in methods: genDecodeMethodFields(m)
print "decode_method_fields(Name, BinaryFields) ->"
print " rabbit_misc:frame_error(Name, BinaryFields)."