From 63b36d641962b42b1fe71608b698b19a26656814 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Tue, 18 Apr 2017 14:17:08 +0200 Subject: [PATCH] Removed unused DatabaseIntrospection._name_to_index() from Oracle backend. Unused since its introduction in cac7675f247da325cb862a312804fe64845d1155. --- django/db/backends/oracle/introspection.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/django/db/backends/oracle/introspection.py b/django/db/backends/oracle/introspection.py index 03f5cd64a0..50d9d8092c 100644 --- a/django/db/backends/oracle/introspection.py +++ b/django/db/backends/oracle/introspection.py @@ -90,13 +90,6 @@ class DatabaseIntrospection(BaseDatabaseIntrospection): """Table name comparison is case insensitive under Oracle.""" return name.lower() - def _name_to_index(self, cursor, table_name): - """ - Return a dictionary of {field_name: field_index} for the given table. - Indexes are 0-based. - """ - return {d[0]: i for i, d in enumerate(self.get_table_description(cursor, table_name))} - def get_relations(self, cursor, table_name): """ Return a dictionary of {field_name: (field_name_other_table, other_table)}