diff --git a/coolamqp/framing/compilation/compile_definitions.py b/coolamqp/framing/compilation/compile_definitions.py index 6ab7f1bf0657799f0a4475f4e22103909e0ad04e..c311775d91e2303b41ca570b300ebc2277ccdeda 100644 --- a/coolamqp/framing/compilation/compile_definitions.py +++ b/coolamqp/framing/compilation/compile_definitions.py @@ -214,9 +214,6 @@ Field = collections.namedtuple('Field', ('name', 'type', 'basic_type', 'reserved line(u' ])\n zpf = six.binary_type(zpf)\n') line(u''' - if zpf in %s.PARTICULAR_CLASSES: - warnings.warn(u"You could go faster. Go see the comments here") - # If you know in advance what properties you will be using, use typized constructors like # # runs once diff --git a/coolamqp/framing/definitions.py b/coolamqp/framing/definitions.py index a4d0f09488503bfb3f69887682958bb99aa9e8c9..cab1e0787980ef1a353b69ea557e695e8e2e5df2 100644 --- a/coolamqp/framing/definitions.py +++ b/coolamqp/framing/definitions.py @@ -2360,26 +2360,6 @@ class BasicContentPropertyList(AMQPContentPropertyList): zpf = six.binary_type(zpf) if zpf in BasicContentPropertyList.PARTICULAR_CLASSES: - warnings.warn(u"You could go faster. Go see the comments here") - -# If you know in advance what properties you will be using, use typized constructors like -# -# runs once -# my_type = BasicContentPropertyList.typize('content_type', 'content_encoding') -# -# runs many times -# props = my_type('text/plain', 'utf8') -# -# instead of -# -# # runs many times -# props = BasicContentPropertyList(content_type='text/plain', content_encoding='utf8') -# -# This way you will be faster. -# -# If you do not know in advance what properties you will be using, it is correct to use -# this constructor. - return BasicContentPropertyList.PARTICULAR_CLASSES[zpf](**kwargs) else: logger.debug('Property field (BasicContentPropertyList:%s) not seen yet, compiling', repr(zpf))