diff python/utils.py @ 491:343cfd185ca6

minor changes and reaarrangements
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Wed, 16 Apr 2014 17:43:53 -0400
parents 30b3455978d9
children 0a93afea8243 935430b1d408
line wrap: on
line diff
--- a/python/utils.py	Fri Apr 11 17:47:55 2014 -0400
+++ b/python/utils.py	Wed Apr 16 17:43:53 2014 -0400
@@ -656,24 +656,6 @@
             configDict[sectionName] = SceneParameters(config, sectionName) 
         return configDict
 
-
-#########################
-# sqlite
-#########################
-
-def printDBError(error):
-    print('DB Error: {}'.format(error))
-
-def dropTables(connection, tableNames):
-    'deletes the table with names in tableNames'
-    import sqlite3
-    try:
-        cursor = connection.cursor()
-        for tableName in tableNames:
-            cursor.execute('DROP TABLE IF EXISTS '+tableName)
-    except sqlite3.OperationalError as error:
-        printDBError(error)
-
 #########################
 # running tests
 #########################