summaryrefslogtreecommitdiffstats
path: root/webkit/database
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-27 16:58:38 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-27 16:58:38 +0000
commitbe33f8aefab94b842dcea4ad5dc3576c131c928b (patch)
tree89b8d24652a57faea852583287c3565b86bb2e20 /webkit/database
parentcd1c78f30089d0486811923405c6d29df02b1bed (diff)
downloadchromium_src-be33f8aefab94b842dcea4ad5dc3576c131c928b.zip
chromium_src-be33f8aefab94b842dcea4ad5dc3576c131c928b.tar.gz
chromium_src-be33f8aefab94b842dcea4ad5dc3576c131c928b.tar.bz2
Remove VfsBackend::FileTypeIs{Journal,MainDB}
Those methods don't seem to be needed, and they are potentially making it more difficult to use system sqlite. This change should not cause any regressions. BUG=22208 Review URL: http://codereview.chromium.org/7480033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94307 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/database')
-rw-r--r--webkit/database/vfs_backend.cc14
-rw-r--r--webkit/database/vfs_backend.h2
2 files changed, 0 insertions, 16 deletions
diff --git a/webkit/database/vfs_backend.cc b/webkit/database/vfs_backend.cc
index 774180e..a73035d 100644
--- a/webkit/database/vfs_backend.cc
+++ b/webkit/database/vfs_backend.cc
@@ -14,20 +14,6 @@ namespace webkit_database {
static const int kFileTypeMask = 0x00007F00;
// static
-bool VfsBackend::FileTypeIsMainDB(int desired_flags) {
- return (desired_flags & kFileTypeMask) == SQLITE_OPEN_MAIN_DB;
-}
-
-// static
-bool VfsBackend::FileTypeIsJournal(int desired_flags) {
- int file_type = desired_flags & kFileTypeMask;
- return ((file_type == SQLITE_OPEN_MAIN_JOURNAL) ||
- (file_type == SQLITE_OPEN_TEMP_JOURNAL) ||
- (file_type == SQLITE_OPEN_SUBJOURNAL) ||
- (file_type == SQLITE_OPEN_MASTER_JOURNAL));
-}
-
-// static
bool VfsBackend::OpenTypeIsReadWrite(int desired_flags) {
return (desired_flags & SQLITE_OPEN_READWRITE) != 0;
}
diff --git a/webkit/database/vfs_backend.h b/webkit/database/vfs_backend.h
index 7e5d338..c7a6280 100644
--- a/webkit/database/vfs_backend.h
+++ b/webkit/database/vfs_backend.h
@@ -30,8 +30,6 @@ class VfsBackend {
static int64 GetFileSize(const FilePath& file_path);
// Used to make decisions in the DatabaseDispatcherHost.
- static bool FileTypeIsMainDB(int desired_flags);
- static bool FileTypeIsJournal(int desired_flags);
static bool OpenTypeIsReadWrite(int desired_flags);
private: