The CString overload of GetSha1ForFile is never called, disable it to avoid a warning
authorMikko Rasa <tdb@tdb.fi>
Wed, 2 Nov 2011 12:05:22 +0000 (14:05 +0200)
committerMikko Rasa <tdb@tdb.fi>
Wed, 2 Nov 2011 12:05:22 +0000 (14:05 +0200)
src/CryptHelpers.cpp

index 076e23f..fa6ade7 100755 (executable)
@@ -84,6 +84,7 @@ static bool GetSha1ForFile( RageFileBasic &f, unsigned char *szHash )
        return true;
 }
 
+#ifdef UNUSED_CODE
 static bool GetSha1ForFile( CString &sFile, unsigned char *szHash )
 {
        RageFile f;
@@ -92,6 +93,7 @@ static bool GetSha1ForFile( CString &sFile, unsigned char *szHash )
        f.Close();
        return bGot;
 }
+#endif
 
 bool CryptHelpers::GenerateRSAKey( unsigned int keyLength, CString sSeed, CString &sPublicKey, CString &sPrivateKey )
 {