Changeset 179727 in webkit


Ignore:
Timestamp:
Feb 5, 2015 5:07:51 PM (9 years ago)
Author:
Chris Dumez
Message:

Use deleteEmptyDirectory() in NetworkCacheStorage::clear()
https://bugs.webkit.org/show_bug.cgi?id=141314

Reviewed by Antti Koivisto.

Use deleteEmptyDirectory() in NetworkCacheStorage::clear() to simplify
the code a little bit.

  • NetworkProcess/cache/NetworkCacheStorageCocoa.mm:

(WebKit::NetworkCacheStorage::clear):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r179720 r179727  
     12015-02-05  Chris Dumez  <cdumez@apple.com>
     2
     3        Use deleteEmptyDirectory() in NetworkCacheStorage::clear()
     4        https://bugs.webkit.org/show_bug.cgi?id=141314
     5
     6        Reviewed by Antti Koivisto.
     7
     8        Use deleteEmptyDirectory() in NetworkCacheStorage::clear() to simplify
     9        the code a little bit.
     10
     11        * NetworkProcess/cache/NetworkCacheStorageCocoa.mm:
     12        (WebKit::NetworkCacheStorage::clear):
     13
    1142015-02-05  Joseph Pecoraro  <pecoraro@apple.com>
    215
  • trunk/Source/WebKit2/NetworkProcess/cache/NetworkCacheStorageCocoa.mm

    r179708 r179727  
    564564                WebCore::deleteFile(WebCore::pathByAppendingComponent(subdirPath, fileName));
    565565            });
    566             rmdir(WebCore::fileSystemRepresentation(subdirPath).data());
     566            WebCore::deleteEmptyDirectory(subdirPath);
    567567        });
    568568    });
Note: See TracChangeset for help on using the changeset viewer.