summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/platform')
-rw-r--r--Source/WebCore/platform/android/FileSystemAndroid.cpp24
-rw-r--r--Source/WebCore/platform/posix/FileSystemPOSIX.cpp11
2 files changed, 0 insertions, 35 deletions
diff --git a/Source/WebCore/platform/android/FileSystemAndroid.cpp b/Source/WebCore/platform/android/FileSystemAndroid.cpp
index 30dc1d3..5efba84 100644
--- a/Source/WebCore/platform/android/FileSystemAndroid.cpp
+++ b/Source/WebCore/platform/android/FileSystemAndroid.cpp
@@ -86,30 +86,6 @@ String homeDirectoryPath()
return sPluginPath;
}
-Vector<String> listDirectory(const String& path, const String& filter)
-{
- Vector<String> entries;
- CString cpath = path.utf8();
- CString cfilter = filter.utf8();
- DIR* dir = opendir(cpath.data());
- if (dir) {
- struct dirent* dp;
- while ((dp = readdir(dir))) {
- const char* name = dp->d_name;
- if (!strcmp(name, ".") || !strcmp(name, ".."))
- continue;
- if (fnmatch(cfilter.data(), name, 0))
- continue;
- char filePath[1024];
- if (static_cast<int>(sizeof(filePath) - 1) < snprintf(filePath, sizeof(filePath), "%s/%s", cpath.data(), name))
- continue; // buffer overflow
- entries.append(filePath);
- }
- closedir(dir);
- }
- return entries;
-}
-
// We define our own pathGetFileName rather than use the POSIX versions as we
// may get passed a content URI representing the path to the file. We pass
// the input through fileSystemRepresentation before using it to resolve it if
diff --git a/Source/WebCore/platform/posix/FileSystemPOSIX.cpp b/Source/WebCore/platform/posix/FileSystemPOSIX.cpp
index 9ad5f3a..c44b1d2 100644
--- a/Source/WebCore/platform/posix/FileSystemPOSIX.cpp
+++ b/Source/WebCore/platform/posix/FileSystemPOSIX.cpp
@@ -30,21 +30,10 @@
#include "FileSystem.h"
#include "PlatformString.h"
-<<<<<<< HEAD
-#ifdef ANDROID_PLUGINS
-#include <dirent.h>
-#endif
-#include <errno.h>
-#include <fcntl.h>
-#ifdef ANDROID_PLUGINS
-#include <fnmatch.h>
-#endif
-=======
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <fnmatch.h>
->>>>>>> webkit.org at r82507
#include <libgen.h>
#include <sys/stat.h>
#include <sys/types.h>