Skip to content

Commit accc628

Browse files
committed
remove patch
1 parent b24ac14 commit accc628

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

source/gameanalytics/GAStore.cpp

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)