[mod] clean

code clean
This commit is contained in:
Andrea
2025-03-25 00:08:24 +01:00
committed by Chris Hennes
parent 5e899fb5b9
commit ce10f30aa6
7 changed files with 2 additions and 27 deletions

View File

@@ -348,23 +348,7 @@ void Cloud::CloudWriter::createBucket()
curl_easy_cleanup(curl);
}
}
//
// #if defined(FC_OS_WIN32)
//
// #include <chrono>
// #undef timezone
//
//
// int gettimeofday( time_t* tp, struct timezone* tzp) {
// namespace sc = std::chrono;
// sc::system_clock::duration d = sc::system_clock::now().time_since_epoch();
// sc::seconds s = sc::duration_cast<sc::seconds>(d);
// tp->tv_sec = s.count();
// tp->tv_usec = sc::duration_cast<sc::microseconds>(d - s).count();
//
// return 0;
//}
// #endif
struct Cloud::AmzDatav4* Cloud::ComputeDigestAmzS3v4(char* operation,
const char* server,
@@ -639,7 +623,6 @@ Cloud::BuildHeaderAmzS3v4(const char* URL, const char* PublicKey, struct Cloud::
struct curl_slist* chunk = nullptr;
// Build the Host: entry
// sprintf(header_data,"Host: %s:%s", URL, TCPPort);
sprintf(header_data, "Host: %s", URL);
chunk = curl_slist_append(chunk, header_data);
@@ -1314,7 +1297,6 @@ void Cloud::CloudWriter::pushCloud(const char* FileName, const char* data, long
void Cloud::CloudWriter::writeFiles(void)
{
// use a while loop because it is possible that while
// processing the files, new ones can be added
std::string tmp = "";
@@ -1505,7 +1487,6 @@ bool Cloud::Module::cloudRestore(const char* BucketName)
doc->setStatus(Document::Restoring, true);
try {
// Document::Restore(reader);
doc->Restore(reader);
}
catch (const Base::Exception& e) {