Changeset 152087 in webkit


Ignore:
Timestamp:
Jun 27, 2013, 3:28:07 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[curl] Fix unused variable/parameter warnings
https://bugs.webkit.org/show_bug.cgi?id=118050

Patch by Peter Gal <galpeter@inf.u-szeged.hu> on 2013-06-27
Reviewed by Christophe Dumez.

Commented out unused parameters and removed an unused variable in the curl backend.

No tests required.

  • platform/network/curl/CredentialStorageCurl.cpp:

(WebCore::CredentialStorage::getFromPersistentStorage):

  • platform/network/curl/DNSCurl.cpp:

(WebCore::prefetchDNS):

  • platform/network/curl/ResourceHandleManager.cpp:

(WebCore::curl_lock_callback):
(WebCore::curl_unlock_callback):
(WebCore::headerCallback):
(WebCore::ResourceHandleManager::downloadTimerCallback):

Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r152086 r152087  
     12013-06-27  Peter Gal  <galpeter@inf.u-szeged.hu>
     2
     3        [curl] Fix unused variable/parameter warnings
     4        https://bugs.webkit.org/show_bug.cgi?id=118050
     5
     6        Reviewed by Christophe Dumez.
     7
     8        Commented out unused parameters and removed an unused variable in the curl backend.
     9
     10        No tests required.
     11
     12        * platform/network/curl/CredentialStorageCurl.cpp:
     13        (WebCore::CredentialStorage::getFromPersistentStorage):
     14        * platform/network/curl/DNSCurl.cpp:
     15        (WebCore::prefetchDNS):
     16        * platform/network/curl/ResourceHandleManager.cpp:
     17        (WebCore::curl_lock_callback):
     18        (WebCore::curl_unlock_callback):
     19        (WebCore::headerCallback):
     20        (WebCore::ResourceHandleManager::downloadTimerCallback):
     21
    1222013-06-27  Csaba Osztrogonác  <ossy@webkit.org>
    223
  • trunk/Source/WebCore/platform/network/curl/CredentialStorageCurl.cpp

    r86343 r152087  
    3232namespace WebCore {
    3333
    34 Credential CredentialStorage::getFromPersistentStorage(const ProtectionSpace& protectionSpace)
     34Credential CredentialStorage::getFromPersistentStorage(const ProtectionSpace& /* protectionSpace */)
    3535{
    3636    notImplemented();
  • trunk/Source/WebCore/platform/network/curl/DNSCurl.cpp

    r95901 r152087  
    3131namespace WebCore {
    3232
    33 void prefetchDNS(const String& hostname)
     33void prefetchDNS(const String& /* hostname */)
    3434{
    3535    notImplemented();
  • trunk/Source/WebCore/platform/network/curl/ResourceHandleManager.cpp

    r152085 r152087  
    116116// these two functions provide mutexes for cookies, and for the global DNS
    117117// cache.
    118 static void curl_lock_callback(CURL* handle, curl_lock_data data, curl_lock_access access, void* userPtr)
     118static void curl_lock_callback(CURL* /* handle */, curl_lock_data data, curl_lock_access /* access */, void* /* userPtr */)
    119119{
    120120    if (Mutex* mutex = sharedResourceMutex(data))
     
    122122}
    123123
    124 static void curl_unlock_callback(CURL* handle, curl_lock_data data, void* userPtr)
     124static void curl_unlock_callback(CURL* /* handle */, curl_lock_data data, void* /* userPtr */)
    125125{
    126126    if (Mutex* mutex = sharedResourceMutex(data))
     
    313313    if (header == String("\r\n") || header == String("\n")) {
    314314        CURL* h = d->m_handle;
    315         CURLcode err;
    316315
    317316        long httpCode = 0;
    318         err = curl_easy_getinfo(h, CURLINFO_RESPONSE_CODE, &httpCode);
     317        curl_easy_getinfo(h, CURLINFO_RESPONSE_CODE, &httpCode);
    319318
    320319        if (isHttpInfo(httpCode)) {
     
    325324
    326325        double contentLength = 0;
    327         err = curl_easy_getinfo(h, CURLINFO_CONTENT_LENGTH_DOWNLOAD, &contentLength);
     326        curl_easy_getinfo(h, CURLINFO_CONTENT_LENGTH_DOWNLOAD, &contentLength);
    328327        d->m_response.setExpectedContentLength(static_cast<long long int>(contentLength));
    329328
    330329        const char* hdr;
    331         err = curl_easy_getinfo(h, CURLINFO_EFFECTIVE_URL, &hdr);
     330        curl_easy_getinfo(h, CURLINFO_EFFECTIVE_URL, &hdr);
    332331        d->m_response.setURL(KURL(ParsedURLString, hdr));
    333332
     
    423422}
    424423
    425 void ResourceHandleManager::downloadTimerCallback(Timer<ResourceHandleManager>* timer)
     424void ResourceHandleManager::downloadTimerCallback(Timer<ResourceHandleManager>* /* timer */)
    426425{
    427426    startScheduledJobs();
Note: See TracChangeset for help on using the changeset viewer.