Remove APPLICATION_CACHE_DYNAMIC_ENTRIES and associated code
authorabarth@webkit.org <abarth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 19 Sep 2011 22:53:04 +0000 (22:53 +0000)
committerabarth@webkit.org <abarth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 19 Sep 2011 22:53:04 +0000 (22:53 +0000)
https://bugs.webkit.org/show_bug.cgi?id=68407

Reviewed by Eric Seidel.

As discussed on webkit-dev, no one appears to be using this code.

* GNUmakefile.list.am:
* UseJSC.cmake:
* WebCore.gypi:
* WebCore.pro:
* WebCore.vcproj/WebCore.vcproj:
* WebCore.xcodeproj/project.pbxproj:
* bindings/js/JSBindingsAllInOne.cpp:
* bindings/js/JSDOMApplicationCacheCustom.cpp: Removed.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@95486 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/GNUmakefile.list.am
Source/WebCore/UseJSC.cmake
Source/WebCore/WebCore.gypi
Source/WebCore/WebCore.pro
Source/WebCore/WebCore.vcproj/WebCore.vcproj
Source/WebCore/WebCore.xcodeproj/project.pbxproj
Source/WebCore/bindings/js/JSBindingsAllInOne.cpp
Source/WebCore/bindings/js/JSDOMApplicationCacheCustom.cpp [deleted file]

index 20bc62d..f5ecdd2 100644 (file)
@@ -1,3 +1,21 @@
+2011-09-19  Adam Barth  <abarth@webkit.org>
+
+        Remove APPLICATION_CACHE_DYNAMIC_ENTRIES and associated code
+        https://bugs.webkit.org/show_bug.cgi?id=68407
+
+        Reviewed by Eric Seidel.
+
+        As discussed on webkit-dev, no one appears to be using this code.
+
+        * GNUmakefile.list.am:
+        * UseJSC.cmake:
+        * WebCore.gypi:
+        * WebCore.pro:
+        * WebCore.vcproj/WebCore.vcproj:
+        * WebCore.xcodeproj/project.pbxproj:
+        * bindings/js/JSBindingsAllInOne.cpp:
+        * bindings/js/JSDOMApplicationCacheCustom.cpp: Removed.
+
 2011-09-19  Sheriff Bot  <webkit.review.bot@gmail.com>
 
         Unreviewed, rolling out r95385 and r95457.
index ae507e9..3483737 100644 (file)
@@ -685,7 +685,6 @@ webcore_sources += \
        Source/WebCore/bindings/js/JSCustomXPathNSResolver.h \
        Source/WebCore/bindings/js/JSDictionary.cpp \
        Source/WebCore/bindings/js/JSDictionary.h \
-       Source/WebCore/bindings/js/JSDOMApplicationCacheCustom.cpp \
        Source/WebCore/bindings/js/JSDOMBinding.cpp \
        Source/WebCore/bindings/js/JSDOMBinding.h \
        Source/WebCore/bindings/js/JSDOMFormDataCustom.cpp \
index 77f2640..5061426 100644 (file)
@@ -211,12 +211,6 @@ IF (ENABLE_SHARED_WORKERS)
     )
 ENDIF ()
 
-IF (ENABLE_OFFLINE_WEB_APPLICATIONS)
-    LIST(APPEND WebCore_SOURCES
-        bindings/js/JSDOMApplicationCacheCustom.cpp
-    )
-ENDIF ()
-
 IF (ENABLE_XPATH)
     LIST(APPEND WebCore_SOURCES
         bindings/js/JSCustomXPathNSResolver.cpp
index 77ee498..9228d05 100644 (file)
             'bindings/js/JSCustomXPathNSResolver.cpp',
             'bindings/js/JSCustomXPathNSResolver.h',
             'bindings/js/JSDictionary.cpp',
-            'bindings/js/JSDOMApplicationCacheCustom.cpp',
             'bindings/js/JSDOMBinding.cpp',
             'bindings/js/JSDOMFormDataCustom.cpp',
             'bindings/js/JSDOMGlobalObject.cpp',
index ab905fe..dfd2c00 100644 (file)
@@ -3563,11 +3563,6 @@ SOURCES += \
     loader/appcache/ApplicationCacheResource.cpp \
     loader/appcache/DOMApplicationCache.cpp \
     loader/appcache/ManifestParser.cpp
-
-    !v8 {
-        SOURCES += \
-            bindings/js/JSDOMApplicationCacheCustom.cpp
-    }
 }
 
 contains(DEFINES, ENABLE_WEB_SOCKETS=1) {
index f2e0812..c4d4126 100755 (executable)
                                        </FileConfiguration>
                                </File>
                                <File
-                                       RelativePath="..\bindings\js\JSDOMApplicationCacheCustom.cpp"
-                                       >
-                                       <FileConfiguration
-                                               Name="Debug|Win32"
-                                               ExcludedFromBuild="true"
-                                               >
-                                               <Tool
-                                                       Name="VCCLCompilerTool"
-                                               />
-                                       </FileConfiguration>
-                                       <FileConfiguration
-                                               Name="Release|Win32"
-                                               ExcludedFromBuild="true"
-                                               >
-                                               <Tool
-                                                       Name="VCCLCompilerTool"
-                                               />
-                                       </FileConfiguration>
-                                       <FileConfiguration
-                                               Name="Debug_Cairo_CFLite|Win32"
-                                               ExcludedFromBuild="true"
-                                               >
-                                               <Tool
-                                                       Name="VCCLCompilerTool"
-                                               />
-                                       </FileConfiguration>
-                                       <FileConfiguration
-                                               Name="Release_Cairo_CFLite|Win32"
-                                               ExcludedFromBuild="true"
-                                               >
-                                               <Tool
-                                                       Name="VCCLCompilerTool"
-                                               />
-                                       </FileConfiguration>
-                                       <FileConfiguration
-                                               Name="Debug_All|Win32"
-                                               ExcludedFromBuild="true"
-                                               >
-                                               <Tool
-                                                       Name="VCCLCompilerTool"
-                                               />
-                                       </FileConfiguration>
-                                       <FileConfiguration
-                                               Name="Production|Win32"
-                                               ExcludedFromBuild="true"
-                                               >
-                                               <Tool
-                                                       Name="VCCLCompilerTool"
-                                               />
-                                       </FileConfiguration>
-                               </File>
-                               <File
                                        RelativePath="..\bindings\js\JSDOMBinding.cpp"
                                        >
                                        <FileConfiguration
index 7371ef3..a77deb4 100644 (file)
                1ABFE7530CD968D000FE4834 /* SQLTransaction.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1ABFE7520CD968D000FE4834 /* SQLTransaction.cpp */; };
                1AC2260C0DB69F190089B669 /* JSDOMApplicationCache.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC2260A0DB69F190089B669 /* JSDOMApplicationCache.cpp */; };
                1AC2260D0DB69F190089B669 /* JSDOMApplicationCache.h in Headers */ = {isa = PBXBuildFile; fileRef = 1AC2260B0DB69F190089B669 /* JSDOMApplicationCache.h */; };
-               1AC226170DB69F740089B669 /* JSDOMApplicationCacheCustom.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC226160DB69F740089B669 /* JSDOMApplicationCacheCustom.cpp */; };
                1ACD1B630B029739007E5016 /* DOMCSSStyleDeclarationInternal.h in Copy Generated Headers */ = {isa = PBXBuildFile; fileRef = 85E711440AC5D5340053270F /* DOMCSSStyleDeclarationInternal.h */; };
                1ACE53DF0A8D18810022947D /* JSDOMParser.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1ACE53DD0A8D18810022947D /* JSDOMParser.cpp */; };
                1ACE53E00A8D18810022947D /* JSDOMParser.h in Headers */ = {isa = PBXBuildFile; fileRef = 1ACE53DE0A8D18810022947D /* JSDOMParser.h */; };
                1ABFE7520CD968D000FE4834 /* SQLTransaction.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SQLTransaction.cpp; sourceTree = "<group>"; };
                1AC2260A0DB69F190089B669 /* JSDOMApplicationCache.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSDOMApplicationCache.cpp; sourceTree = "<group>"; };
                1AC2260B0DB69F190089B669 /* JSDOMApplicationCache.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSDOMApplicationCache.h; sourceTree = "<group>"; };
-               1AC226160DB69F740089B669 /* JSDOMApplicationCacheCustom.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSDOMApplicationCacheCustom.cpp; sourceTree = "<group>"; };
                1ACE53DD0A8D18810022947D /* JSDOMParser.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = JSDOMParser.cpp; sourceTree = "<group>"; };
                1ACE53DE0A8D18810022947D /* JSDOMParser.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = JSDOMParser.h; sourceTree = "<group>"; };
                1ACE53E10A8D18E70022947D /* DOMParser.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = DOMParser.cpp; sourceTree = "<group>"; };
                                893C47DE123EF4A9002B3D86 /* JSDirectoryEntryCustom.cpp */,
                                893C48201249535B002B3D86 /* JSDirectoryEntrySyncCustom.cpp */,
                                49C7BA8C1042F5B10009D447 /* JSDocumentCustom.cpp */,
-                               1AC226160DB69F740089B669 /* JSDOMApplicationCacheCustom.cpp */,
                                2E0888E5114884E200AF4265 /* JSDOMFormDataCustom.cpp */,
                                22885E631301AE4C00526E68 /* JSDOMImplementationCustom.cpp */,
                                A9C6E6460D7465CA006442E9 /* JSDOMMimeTypeArrayCustom.cpp */,
                                1A494EDE0A123F4C00FDAFC1 /* JSDocumentFragment.cpp in Sources */,
                                65DF31F509D1CC60000BE325 /* JSDocumentType.cpp in Sources */,
                                1AC2260C0DB69F190089B669 /* JSDOMApplicationCache.cpp in Sources */,
-                               1AC226170DB69F740089B669 /* JSDOMApplicationCacheCustom.cpp in Sources */,
                                93B70D6309EB0C7C009D8468 /* JSDOMBinding.cpp in Sources */,
                                BC60D7C00D29A46300B9918F /* JSDOMCoreException.cpp in Sources */,
                                898785A4122CA2A7003AABDA /* JSDOMFileSystem.cpp in Sources */,
index 0ba9d7f..af34774 100644 (file)
@@ -52,7 +52,6 @@
 #include "JSCustomVoidCallback.cpp"
 #include "JSCustomXPathNSResolver.cpp"
 #include "JSDictionary.cpp"
-#include "JSDOMApplicationCacheCustom.cpp"
 #include "JSDOMBinding.cpp"
 #include "JSDOMFormDataCustom.cpp"
 #include "JSDOMGlobalObject.cpp"
diff --git a/Source/WebCore/bindings/js/JSDOMApplicationCacheCustom.cpp b/Source/WebCore/bindings/js/JSDOMApplicationCacheCustom.cpp
deleted file mode 100644 (file)
index 1e1be6a..0000000
+++ /dev/null
@@ -1,91 +0,0 @@
-/*
- * Copyright (C) 2008, 2009 Apple Inc. All Rights Reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
- */
-
-#include "config.h"
-
-#if ENABLE(OFFLINE_WEB_APPLICATIONS)
-
-#include "JSDOMApplicationCache.h"
-
-#include "DOMApplicationCache.h"
-#include "DOMWindow.h"
-#include "Event.h"
-#include "Frame.h"
-#include "FrameLoader.h"
-#include "JSDOMWindowCustom.h"
-#include "JSEvent.h"
-#include "JSEventListener.h"
-#include <wtf/text/AtomicString.h>
-
-using namespace JSC;
-
-namespace WebCore {
-
-#if ENABLE(APPLICATION_CACHE_DYNAMIC_ENTRIES)
-
-JSValue JSDOMApplicationCache::hasItem(ExecState* exec)
-{
-    Frame* frame = asJSDOMWindow(exec->dynamicGlobalObject())->impl()->frame();
-    if (!frame)
-        return jsUndefined();
-    const KURL& url = frame->document()->completeURL(exec->argument(0).toString(exec));
-
-    ExceptionCode ec = 0;
-    bool result = impl()->hasItem(url, ec);
-    setDOMException(exec, ec);
-    return jsBoolean(result);
-}
-
-JSValue JSDOMApplicationCache::add(ExecState* exec)
-{
-    Frame* frame = asJSDOMWindow(exec->dynamicGlobalObject())->impl()->frame();
-    if (!frame)
-        return jsUndefined();
-    const KURL& url = frame->document()->completeURL(exec->argument(0).toString(exec));
-
-    ExceptionCode ec = 0;
-    impl()->add(url, ec);
-    setDOMException(exec, ec);
-    return jsUndefined();
-}
-
-JSValue JSDOMApplicationCache::remove(ExecState* exec)
-{
-    Frame* frame = asJSDOMWindow(exec->dynamicGlobalObject())->impl()->frame();
-    if (!frame)
-        return jsUndefined();
-    const KURL& url = frame->document()->completeURL(exec->argument(0).toString(exec));
-
-    ExceptionCode ec = 0;
-    impl()->remove(url, ec);
-    setDOMException(exec, ec);
-    return jsUndefined();
-}
-
-#endif // ENABLE(APPLICATION_CACHE_DYNAMIC_ENTRIES)
-
-} // namespace WebCore
-
-#endif // ENABLE(OFFLINE_WEB_APPLICATIONS)