cubicweb/schema.py
changeset 12508 a8c1ea390400
parent 12355 c703dc95c82e
child 12512 661dd0436c01
--- a/cubicweb/schema.py	Thu Mar 14 14:45:35 2019 +0100
+++ b/cubicweb/schema.py	Thu Mar 14 12:08:37 2019 +0100
@@ -31,7 +31,6 @@
 
 from logilab.common.decorators import cached, clear_cache, monkeypatch, cachedproperty
 from logilab.common.logging_ext import set_log_methods
-from logilab.common.deprecation import deprecated
 from logilab.common.textutils import splitstrip
 from logilab.common.graph import get_cycles
 
@@ -993,10 +992,6 @@
                     return False
         return True
 
-    @deprecated('use .rdef(subjtype, objtype).role_cardinality(role)')
-    def cardinality(self, subjtype, objtype, target):
-        return self.rdef(subjtype, objtype).role_cardinality(target)
-
 
 class CubicWebSchema(Schema):
     """set of entities and relations schema defining the possible data sets