Permalink
Browse files

Removed an unecessary function.

It was introduced by the refactoring in 5a4e63e and made redundant by
the refactoring in 1893467.
  • Loading branch information...
1 parent 5ec0405 commit 09ca0107689c6219ba311be58134407e49125235 @aaugustin aaugustin committed Feb 18, 2013
Showing with 5 additions and 7 deletions.
  1. +5 −7 django/db/backends/sqlite3/base.py
@@ -344,15 +344,13 @@ def get_new_connection(self, conn_params):
def init_connection_state(self):
pass
- def _sqlite_create_connection(self):
- conn_params = self.get_connection_params()
- self.connection = self.get_new_connection(conn_params)
- self.init_connection_state()
- connection_created.send(sender=self.__class__, connection=self)
-
def _cursor(self):
if self.connection is None:
- self._sqlite_create_connection()
+ conn_params = self.get_connection_params()
+ self.connection = self.get_new_connection(conn_params)
+ self.init_connection_state()
+ connection_created.send(sender=self.__class__, connection=self)
+
return self.connection.cursor(factory=SQLiteCursorWrapper)
def check_constraints(self, table_names=None):

0 comments on commit 09ca010

Please sign in to comment.