diff --git a/DataStorage/Datastore.cs b/DataStorage/Datastore.cs index 1f34a50fd..e1c0cf456 100644 --- a/DataStorage/Datastore.cs +++ b/DataStorage/Datastore.cs @@ -44,7 +44,6 @@ namespace MatterHackers.MatterControl.DataStorage private string datastoreLocation = ApplicationDataStorage.Instance.DatastorePath; private static Datastore globalInstance; private ApplicationSession activeSession; - private bool TEST_FLAG = false; private List dataStoreTables = new List { @@ -90,22 +89,6 @@ namespace MatterHackers.MatterControl.DataStorage default: throw new NotImplementedException(); } - - if (TEST_FLAG) - { - //In test mode - attempt to drop all tables (in case db was locked when we tried to delete it) - foreach (Type table in dataStoreTables) - { - try - { - this.dbSQLite.DropTable(table); - } - catch - { - GuiWidget.BreakInDebugger(); - } - } - } } public static Datastore Instance @@ -165,15 +148,7 @@ namespace MatterHackers.MatterControl.DataStorage //Run initial checks and operations on sqlite datastore public void Initialize() { - if (TEST_FLAG) - { - ValidateSchema(); - GenerateSampleData(); - } - else - { - ValidateSchema(); - } + ValidateSchema(); // Contruct the root library collection if missing var rootLibraryCollection = Datastore.Instance.dbSQLite.Table().Where(v => v.Name == "_library").Take(1).FirstOrDefault();