From: Steve Brokenshire Date: Fri, 11 Mar 2016 16:30:57 +0000 (+0000) Subject: Removed commented out code from common/etag.cpp X-Git-Tag: release-0.11~157 X-Git-Url: http://Server1/repobrowser/?p=xestiaab%2F.git;a=commitdiff_plain;h=7ec53fbd1aba779518271a3b3277a7c21bb8f7f7 Removed commented out code from common/etag.cpp --- diff --git a/source/common/etag.cpp b/source/common/etag.cpp index 6e24d01..3a9b3f3 100644 --- a/source/common/etag.cpp +++ b/source/common/etag.cpp @@ -180,9 +180,7 @@ wxString ETagDB::GetETag(wxString Filename){ ProcessLock->lock(); // Get the ETag. - - //IterwxS = FilenameETag.find(Filename); - + if (FilenameETag.find(Filename) != FilenameETag.end()){ IterwxS = FilenameETag.find(Filename); @@ -212,8 +210,6 @@ wxString ETagDB::GetETagOriginal(wxString Filename){ // Get the ETag. - //IterwxS = FilenameETag.find(Filename); - if (FilenameETagOriginal.find(Filename) != FilenameETagOriginal.end()){ IterwxS = FilenameETagOriginal.find(Filename); @@ -270,7 +266,7 @@ bool ETagDB::WriteETagDB(){ if (wxFileExists(AccountETagDB) == FALSE){ if (ETagDBFile.Create(AccountETagDB) == FALSE){ - ////ProcessLock.unlock(); + return FALSE; } @@ -278,7 +274,7 @@ bool ETagDB::WriteETagDB(){ } else { if (ETagDBFile.Open(AccountETagDB) == FALSE){ - ////ProcessLock.unlock(); + return FALSE; } @@ -332,9 +328,7 @@ bool ETagDB::LoadETagDB(){ wxString AccountDirPath; #if defined(__HAIKU__) - - //preffilename = wxT("noo"); - + #elif defined(__WIN32__) AccountDirPath = GetAccountDir(AccountDir, FALSE); @@ -356,8 +350,6 @@ bool ETagDB::LoadETagDB(){ if (wxFileExists(AccountETagDB) == FALSE){ if (ETagDBFile.Create(AccountETagDB) == FALSE){ - ////ProcessLock.unlock(); - //ProcessLock->unlock(); return FALSE; @@ -367,8 +359,6 @@ bool ETagDB::LoadETagDB(){ if (ETagDBFile.Open(AccountETagDB, wxConvUTF8) == FALSE){ - ////ProcessLock.unlock(); - //ProcessLock->unlock(); return FALSE; }