# HG changeset patch # User Adrien Di Mascio # Date 1476365988 -7200 # Node ID 2f885861cb8418684ab4ac6b75874184e92ea803 # Parent 7a7ce3da28fbeb1dd7078f969e6adb6d7c367de6 [massive store] remove unused code diff -r 7a7ce3da28fb -r 2f885861cb84 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 . -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 = {}