From 7381dbf0cb6dff0e68f892add64cc4d38e28b0b1 Mon Sep 17 00:00:00 2001
From: Piotr Maslanka <piotr.maslanka@henrietta.com.pl>
Date: Fri, 7 Apr 2017 02:09:55 +0200
Subject: [PATCH] who needs warnings

---
 .../compilation/compile_definitions.py        |  3 ---
 coolamqp/framing/definitions.py               | 20 -------------------
 2 files changed, 23 deletions(-)

diff --git a/coolamqp/framing/compilation/compile_definitions.py b/coolamqp/framing/compilation/compile_definitions.py
index 6ab7f1b..c311775 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 a4d0f09..cab1e07 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))
-- 
GitLab