From 42c7386f022e4a819174c07e23bb133eddd37539 Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Mon, 8 Nov 2010 23:38:54 +0000 Subject: don't check shortstr size on decode since it is guaranteed to fit --- codegen.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'codegen.py') 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 -- cgit v1.2.1