[dataimport] remove deprecated methods from massive store
authorJulien Cristau <julien.cristau@logilab.fr>
Wed, 04 Nov 2015 09:09:08 +0100
changeset 10867 ca73ee6d24ad
parent 10866 ed62ba97d79e
child 10868 ffb5b6c25cec
[dataimport] remove deprecated methods from massive store This code is new in cubicweb, no reason for it to carry deprecated stuff from the start.
dataimport/massive_store.py
--- a/dataimport/massive_store.py	Wed Nov 04 09:11:10 2015 +0100
+++ b/dataimport/massive_store.py	Wed Nov 04 09:09:08 2015 +0100
@@ -24,7 +24,6 @@
 
 from six.moves import range
 
-from logilab.common.deprecation import deprecated
 from yams.constraints import SizeConstraint
 
 from psycopg2 import ProgrammingError
@@ -516,25 +515,6 @@
                 self.sql('DROP TABLE %s' % table_name)
         self.commit()
 
-    @deprecated('[3.22] use prepare_insert_entity instead')
-    def create_entity(self, etype, **kwargs):
-        """ Create an entity
-        """
-        eid = self.prepare_insert_entity(etype, **kwargs)
-        entity = self._cnx.vreg['etypes'].etype_class(etype)(self._cnx)
-        entity.cw_attr_cache.update(kwargs)
-        entity.eid = eid
-        return entity
-
-    @deprecated('[3.22] use prepare_insert_relation instead')
-    def relate(self, subj_eid, rtype, obj_eid, *args, **kwargs):
-        self.prepare_insert_relation(subj_eid, rtype, obj_eid, *args, **kwargs)
-
-    @deprecated('[3.22] use finish instead')
-    def cleanup(self):
-        self.finish()
-
-
     ### FLUSH #################################################################
 
     def on_commit(self):