From c8afa8f7f0c0b9ccb5040d61d76592cdcc13c505 Mon Sep 17 00:00:00 2001 From: rrizun Date: Wed, 20 Feb 2008 05:06:00 +0000 Subject: [PATCH] tidyup git-svn-id: http://s3fs.googlecode.com/svn/trunk@87 df820570-a93a-0410-bd06-b72b767a4274 --- s3fs/s3fs.cpp | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/s3fs/s3fs.cpp b/s3fs/s3fs.cpp index cd7f82f..92f947c 100644 --- a/s3fs/s3fs.cpp +++ b/s3fs/s3fs.cpp @@ -207,35 +207,6 @@ my_curl_easy_perform(CURL* curl) { return -EIO; } -//// ### TODO replace this with a plain 'ol function (or a method on auto_curl) -//#define MY_CURL_EASY_PERFORM(curl) \ -//if (true) { \ -// CURLcode curlCode = curl_easy_perform(curl.get()); \ -// if (curlCode == CURLE_OPERATION_TIMEDOUT) \ -// curlCode = curl_easy_perform(curl.get()); \ -// if (curlCode != 0) { \ -// long responseCode; \ -// if (curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &responseCode) != 0) \ -// Yikes(-EIO); \ -// if (responseCode == 500) { \ -// cout << __LINE__ << "###curlCode=" << curlCode << "(" << curl_easy_strerror(curlCode) << ")" << "###responseCode=" << responseCode << endl; \ -// cout << "retrying..." << endl; \ -// curlCode = curl_easy_perform(curl.get()); \ -// if (curlCode == CURLE_OPERATION_TIMEDOUT) \ -// curlCode = curl_easy_perform(curl.get()); \ -// } \ -// if (curlCode != 0) { \ -// if (curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &responseCode) != 0) \ -// Yikes(-EIO); \ -// if (responseCode == 404) \ -// return -ENOENT; \ -// cout << __LINE__ << "###curlCode=" << curlCode << "(" << curl_easy_strerror(curlCode) << ")" << "###responseCode=" << responseCode << endl; \ -// cout << "giving up..." << endl; \ -// Yikes(-EIO); \ -// } \ -// } \ -//} - static string bucket; static string AWSAccessKeyId; static string AWSSecretAccessKey;