[massive store] remove unused code
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Thu, 13 Oct 2016 15:39:48 +0200
changeset 11802 2f885861cb84
parent 11801 7a7ce3da28fb
child 11803 9f7949b63ab2
[massive store] remove unused code
cubicweb/dataimport/massive_store.py
--- a/cubicweb/dataimport/massive_store.py	Fri Nov 04 11:19:29 2016 +0100
+++ b/cubicweb/dataimport/massive_store.py	Thu Oct 13 15:39:48 2016 +0200
@@ -17,8 +17,6 @@
 # You should have received a copy of the GNU Lesser General Public License along
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
 
-from base64 import b64encode
-from copy import copy
 from collections import defaultdict
 from itertools import chain
 import logging
@@ -385,20 +383,6 @@
                       {'t': tablename, 's': self.pg_schema})
         return bool(cu.fetchone())
 
-    def table_indexes_constraints(self, tablename):
-        """Return one dictionary with all indexes by name, another with all constraints by name,
-        for the given table.
-        """
-        indexes = self.table_indexes(tablename)
-        constraints = self.table_constraints(tablename)
-        _indexes = {}
-        for name, query in indexes.items():
-            # Remove pkey indexes (automatically created by constraints)
-            # Specific cases of primary key, see #3224079
-            if name not in constraints:
-                _indexes[name] = query
-        return _indexes, constraints
-
     def table_indexes(self, tablename):
         """Return a dictionary of indexes {index name: index sql}, constraints included."""
         indexes = {}