summaryrefslogtreecommitdiff
path: root/codegen.py
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2010-11-08 23:38:54 +0000
committerMatthias Radestock <matthias@rabbitmq.com>2010-11-08 23:38:54 +0000
commit42c7386f022e4a819174c07e23bb133eddd37539 (patch)
treeb412add086622410cb324be6ae263f8c97407c82 /codegen.py
parent7ed10703eeea9379736e32cec751f23c3393aa4c (diff)
downloadrabbitmq-server-42c7386f022e4a819174c07e23bb133eddd37539.tar.gz
don't check shortstr size on decode since it is guaranteed to fit
Diffstat (limited to 'codegen.py')
-rw-r--r--codegen.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/codegen.py b/codegen.py
index 4fdbec55..02b06f68 100644
--- a/codegen.py
+++ b/codegen.py
@@ -240,8 +240,6 @@ def genErl(spec):
elif type == 'table':
print " F%d = rabbit_binary_parser:parse_table(F%dTab)," % \
(f.index, f.index)
- elif type == 'shortstr':
- print " if F%dLen > 255 -> exit(method_field_shortstr_overflow); true -> ok end," % (f.index)
else:
pass