diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-03-05 14:34:32 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-05 14:34:32 -0800 |
commit | 635860845790a19bf50bbc51ba8fb66a96dde068 (patch) | |
tree | ef6ad9ff73a5b57f65249d4232a202fa77e6a140 /WebCore/platform/posix | |
parent | 8e35f3cfc7fba1d1c829dc557ebad6409cbe16a2 (diff) | |
download | external_webkit-635860845790a19bf50bbc51ba8fb66a96dde068.zip external_webkit-635860845790a19bf50bbc51ba8fb66a96dde068.tar.gz external_webkit-635860845790a19bf50bbc51ba8fb66a96dde068.tar.bz2 |
auto import from //depot/cupcake/@136594
Diffstat (limited to 'WebCore/platform/posix')
-rw-r--r-- | WebCore/platform/posix/FileSystemPOSIX.cpp | 31 |
1 files changed, 5 insertions, 26 deletions
diff --git a/WebCore/platform/posix/FileSystemPOSIX.cpp b/WebCore/platform/posix/FileSystemPOSIX.cpp index 82ae087..c1bef60 100644 --- a/WebCore/platform/posix/FileSystemPOSIX.cpp +++ b/WebCore/platform/posix/FileSystemPOSIX.cpp @@ -163,31 +163,10 @@ String directoryName(const String& path) return dirname(fsRep.mutableData()); } -Vector<String> listDirectory(const String& path, const String& filter) -{ -#ifdef ANDROID_PLUGINS - CString fsRepPath = fileSystemRepresentation(path); - CString fsRepFilter = fileSystemRepresentation(filter); -#endif - Vector<String> entries; -#ifdef ANDROID_PLUGINS - DIR *dir = opendir(fsRepPath.data()); - if (dir == NULL) - return entries; - for (;;) { - struct dirent *entry = readdir(dir); - if (entry == NULL) - break; - if (!fnmatch(fsRepFilter.data(), entry->d_name, FNM_NOESCAPE)) { - String fullPath = path + "/" + entry->d_name; - entries.append(fullPath); - } - } - closedir(dir); -#else - notImplemented(); -#endif - return entries; -} +// OK to not implement listDirectory at the moment, because it's only used for plug-ins, and +// all platforms that use the shared plug-in implementation have implementations. We'd need +// to implement it if we wanted to use PluginDatabase.cpp on the Mac. Better to not implement +// at all and get a link error in case this arises, rather than having a stub here, because +// with a stub you learn about the problem at runtime instead of link time. } // namespace WebCore |