removed unnecessary debug output

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8153 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2015-04-21 20:09:20 +00:00
parent 36506ea1e8
commit 77a33cd445
18 changed files with 216 additions and 105 deletions

View file

@ -1045,8 +1045,9 @@ int FileIndex::saveIndex(const std::string& filename, RsFileHash &fileHash, uint
s += "-\n";
// now compress the data.
std::cerr << "FileIndex::saveIndex(): compressign data." << std::endl;
#ifdef FI_DEBUG
std::cerr << "FileIndex::saveIndex(): compressign data." << std::endl;
#endif
uint8_t *compressed_data = NULL ;
uint32_t compressed_data_size = 0 ;
@ -1059,10 +1060,12 @@ int FileIndex::saveIndex(const std::string& filename, RsFileHash &fileHash, uint
fileHash = RsDirUtil::sha1sum((unsigned char *)compressed_data,compressed_data_size);
std::cerr << " file = " << filename << std::endl;
#ifdef FI_DEBUG
std::cerr << " file = " << filename << std::endl;
std::cerr << " old size = " << s.length() << std::endl;
std::cerr << " new size = " << compressed_data_size << std::endl;
std::cerr << " hash = " << fileHash << std::endl;
std::cerr << " hash = " << fileHash << std::endl;
#endif
// /* calculate sha1 hash */
// SHA_CTX *sha_ctx = new SHA_CTX;