Fix coding standards 18/116518/1
authorKyungwook Tak <k.tak@samsung.com>
Mon, 27 Feb 2017 01:59:31 +0000 (10:59 +0900)
committerKyungwook Tak <k.tak@samsung.com>
Mon, 27 Feb 2017 01:59:31 +0000 (10:59 +0900)
Change-Id: I372d7bde421d31e077031c060e86d78840976415
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
src/http.cpp

index f424eae..653649f 100644 (file)
@@ -27,7 +27,6 @@ namespace {
 #ifdef DEBUG_HTTP
 int my_trace(CURL *handle, curl_infotype type, char *data, size_t size, void *userp)
 {
-       const char *text;
        (void) handle;
        (void) userp;
 
@@ -70,13 +69,13 @@ std::string Http::post(const std::string &url, const std::string &request)
        std::unique_ptr<CURL, void(*)(CURL *)> scoped(curl_easy_init(), curl_easy_cleanup);
        if (scoped == nullptr)
                throw std::runtime_error("Failed to curl_easy_init");
-       
+
        CURL *handle = scoped.get();
        struct curl_slist *headers = nullptr;
        headers = curl_slist_append(headers, "Content-Type: application/json");
        if (headers == nullptr)
                throw std::runtime_error("Failed to curl_slist_append for headers");
-       
+
        std::unique_ptr<struct curl_slist, void(*)(struct curl_slist *)> scoped2(
                headers, curl_slist_free_all);