File tree Expand file tree Collapse file tree 1 file changed +0
-26
lines changed
Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -206,30 +206,6 @@ namespace gameanalytics
206206 {
207207 return sqlDatabase;
208208 }
209-
210- bool GAStore::fixOldDatabase ()
211- {
212- std::filesystem::path oldPath = dbPath;
213- std::filesystem::path filename = oldPath.filename ();
214-
215- oldPath = oldPath.parent_path () / " .." / filename;
216-
217- if (std::filesystem::exists (oldPath) && !std::filesystem::exists (dbPath))
218- {
219- try
220- {
221- std::filesystem::rename (oldPath, dbPath);
222- }
223- catch (...)
224- {
225- return false ;
226- }
227-
228- return true ;
229- }
230-
231- return false ;
232- }
233209
234210 bool GAStore::initDatabaseLocation ()
235211 {
@@ -244,8 +220,6 @@ namespace gameanalytics
244220 {
245221 if (!std::filesystem::create_directory (p))
246222 return false ;
247-
248- fixOldDatabase ();
249223 }
250224
251225 return true ;
You can’t perform that action at this time.
0 commit comments