From 328c46121fe7477a3c8a753379452c7a9f3f940e Mon Sep 17 00:00:00 2001 From: Guillaume Melquiond Date: Thu, 30 Aug 2007 17:38:30 +0000 Subject: Missed a few occurrences of "open" when removing them. --- src/account-server/dalstorage.cpp | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'src/account-server/dalstorage.cpp') diff --git a/src/account-server/dalstorage.cpp b/src/account-server/dalstorage.cpp index 6e3886a3..410f1371 100644 --- a/src/account-server/dalstorage.cpp +++ b/src/account-server/dalstorage.cpp @@ -594,9 +594,6 @@ bool DALStorage::updateCharacter(Character *character) std::map DALStorage::getChannelList() { - // If not opened already - open(); - // specialize the string_to functor to convert // a string to a short. string_to toInt; @@ -644,13 +641,6 @@ DALStorage::getChannelList() void DALStorage::updateChannels(std::map& channelList) { -#if defined (SQLITE_SUPPORT) - // Reopen the db in this thread for sqlite, to avoid - // Library Call out of sequence problem due to thread safe. - close(); -#endif - open(); - try { // Empties the table std::stringstream sql; @@ -953,13 +943,6 @@ void DALStorage::addGuild(Guild* guild) */ void DALStorage::removeGuild(Guild* guild) { -#if defined (SQLITE_SUPPORT) - // Reopen the db in this thread for sqlite, to avoid - // Library Call out of sequence problem due to thread safe. - close(); -#endif - open(); - std::ostringstream sql; sql << "delete from " << GUILDS_TBL_NAME << " where id = '" -- cgit v1.2.3-70-g09d2