entities/adapters.py
changeset 9990 c84ad981fc4a
parent 9918 228c3571e222
child 10262 5c2a4a0a8dbd
child 10280 2cdab5e33542
--- a/entities/adapters.py	Tue Sep 23 17:34:36 2014 +0200
+++ b/entities/adapters.py	Thu Sep 25 15:49:13 2014 +0200
@@ -367,15 +367,3 @@
         globalmsg = _('some relations violate a unicity constraint')
         rtypes_msg['unicity constraint'] = globalmsg
         raise ValidationError(self.entity.eid, rtypes_msg)
-
-# deprecated ###################################################################
-
-
-class adapter_deprecated(view.auto_unwrap_bw_compat):
-    """metaclass to print a warning on instantiation of a deprecated class"""
-
-    def __call__(cls, *args, **kwargs):
-        msg = getattr(cls, "__deprecation_warning__",
-                      "%(cls)s is deprecated") % {'cls': cls.__name__}
-        warn(msg, DeprecationWarning, stacklevel=2)
-        return type.__call__(cls, *args, **kwargs)